/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #eee;
  display: flex;
  flex-direction: column;
  user-select: none;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Loader */
.loader-wrapper {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #0f0f0f;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-wrapper.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  border: 6px solid #222;
  border-top: 6px solid #00ffc3;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1.2s linear infinite;
  margin-bottom: 1rem;
}

.loading-text {
  font-size: 1rem;
  color: #888;
  font-style: italic;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: #111;
  box-shadow: 0 2px 10px rgba(0, 255, 195, 0.3);
  z-index: 10000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  width: 120px;
  height: auto;
  cursor: pointer;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: #eee;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 0.3rem;
  transition: color 0.3s ease;
  cursor: pointer;
  user-select: none;
}

.nav-link:hover,
.nav-link:focus {
  color: #00ffc3;
}

.dropdown-toggle::after {
  content: "";
  font-size: 0.6rem;
  margin-left: 0.3rem;
  user-select: none;
}

.dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  background: #222;
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 180px;
  display: none;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 255, 195, 0.3);
  user-select: none;
  z-index: 1000;
}

.dropdown-menu li {
  padding: 0;
  margin: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 0.7rem 1.2rem;
  color: #eee;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.3s ease;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
  background: #00ffc3;
  color: #0f0f0f;
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown:focus-within .dropdown-menu {
  display: flex;
}

/* Join Discord Button */
.btn-join {
  padding: 0.5rem 1rem;
  background: linear-gradient(to right, #00ffc3, #0070ff);
  color: #0f0f0f;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease;
  user-select: none;
}

.btn-join:hover,
.btn-join:focus {
  box-shadow: 0 0 20px #00ffc3;
  transform: scale(1.05);
}

/* Login Container */
.login-container {
  background: #1a1a1a;
  padding: 3rem 3.5rem;
  border-radius: 16px;
  box-shadow: 0 0 50px rgba(0, 255, 195, 0.25);
  width: 380px;
  margin: 3rem auto;
  text-align: center;
  user-select: none;
  flex-shrink: 0;
}

.login-container h1 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  background: linear-gradient(to right, #00ffc3, #0070ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  user-select: none;
}

/* Form Styles */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.login-form label {
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  color: #ccc;
  user-select: none;
}

.login-form input {
  padding: 0.9rem 1.2rem;
  border-radius: 10px;
  border: 2px solid #333;
  background: #111;
  color: #eee;
  font-size: 1.1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  user-select: text;
}

.login-form input::placeholder {
  color: #555;
}

.login-form input:focus {
  outline: none;
  border-color: #00ffc3;
  box-shadow: 0 0 12px #00ffc3;
}

/* Button */
.btn-login {
  padding: 0.9rem 0;
  background: linear-gradient(to right, #00ffc3, #0070ff);
  color: #0f0f0f;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 0 25px #00ffc3;
  transition: all 0.3s ease;
  user-select: none;
}

.btn-login:hover,
.btn-login:focus {
  transform: scale(1.05);
  box-shadow: 0 0 40px #00ffc3;
}

/* Register Link */
.register-link {
  margin-top: 1.8rem;
  font-size: 1rem;
  color: #aaa;
  user-select: none;
}

.register-link a {
  color: #00ffc3;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.register-link a:hover,
.register-link a:focus {
  color: #0070ff;
  text-decoration: underline;
}

/* Footer */
footer {
  background: #111;
  padding: 2rem 1.5rem;
  text-align: center;
  color: #555;
  font-size: 0.9rem;
  border-top: 1px solid #222;
  user-select: none;
}

/* Responsive */
@media (max-width: 420px) {
  .login-container {
    width: 90%;
    padding: 2rem 2rem;
  }
  .nav-menu {
    gap: 1rem;
  }
  .nav-logo img {
    width: 100px;
  }
}
