/* Login page */
.login-page {
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    var(--bg-dark) 0%,
    var(--bg-dark-secondary) 50%,
    var(--bg-dark) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 107, 53, 0.15) 0%,
    transparent 70%
  );
  animation: pulse 4s ease-in-out infinite;
}

.login-page::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.15) 0%,
    transparent 70%
  );
  animation: pulse 5s ease-in-out infinite;
}

.login-card {
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 3rem;
  width: 100%;
  max-width: 450px;
  box-shadow:
    var(--glass-shadow),
    0 0 60px rgba(255, 107, 53, 0.2);
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out;
}

.login-card:hover {
  border-color: var(--neon-orange);
  box-shadow:
    var(--glass-shadow),
    0 0 80px rgba(255, 107, 53, 0.3);
}

.login-logo {
  text-align: center;
  margin-bottom: 1rem;
}

.login-logo h1 {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--neon-orange), var(--neon-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.login-form-group {
  margin-bottom: 1.5rem;
}

.login-form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.login-form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: var(--font-light);
  color: #ffffff;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.login-form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.login-form-input:focus {
  outline: none;
  border-color: var(--neon-orange);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
}

.login-checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.login-checkbox-group:hover {
  background: rgba(255, 255, 255, 0.03);
}

.login-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--neon-orange);
}

.login-checkbox-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.login-btn {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.login-btn-primary {
  background: linear-gradient(135deg, var(--neon-orange), #ff8c5a);
  color: #000;
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
}

.login-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255, 107, 53, 0.7);
}

.login-btn-primary:active {
  transform: translateY(0);
}

.login-alert {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid;
  backdrop-filter: blur(10px);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-alert-error {
  background: rgba(231, 76, 60, 0.2);
  color: #ff6b6b;
  border-color: rgba(231, 76, 60, 0.5);
}

.login-alert-success {
  background: rgba(39, 174, 96, 0.2);
  color: #51cf66;
  border-color: rgba(39, 174, 96, 0.5);
}

.login-back-link {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.login-back-link a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.login-back-link a:hover {
  color: var(--neon-orange);
}

.login-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    135deg,
    var(--neon-orange),
    var(--neon-blue),
    var(--neon-orange)
  );
  border-radius: 30px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.login-card:hover::before {
  opacity: 0.3;
}

@media (max-width: 480px) {
  .login-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .login-logo h1 {
    font-size: 2rem;
  }

  .login-form-input {
    padding: 0.9rem 1rem;
  }
}
