/* ===== Neon Auth Theme ===== */

/* Neon color variables */
body.auth-page {
  --neon-cyan: #00d8ff;
  --neon-pink: #c5009c;
  --neon-red: #e94560;
  --auth-bg: #050508;
  --card-bg: #10101a;
  --glow-cyan: 0 0 10px rgba(0, 216, 255, 0.3);
  --glow-pink: 0 0 10px rgba(197, 0, 156, 0.3);

  background: var(--auth-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated nebula background */
body.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0, 240, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 0, 204, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(83, 52, 131, 0.04) 0%, transparent 60%);
  background-size: 200% 200%;
  animation: nebula 15s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

@keyframes nebula {
  0% {
    background-position: 0% 0%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 50% 100%;
  }
}

/* Minimal navbar for auth pages */
.navbar--minimal {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 10;
}

/* ===== Auth Container ===== */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}

/* ===== Auth Card with animated gradient border ===== */
.auth-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 2.5rem;
  width: min(420px, calc(100vw - 2rem));
  z-index: 1;
  box-shadow:
    0 0 40px rgba(0, 240, 255, 0.1),
    0 0 80px rgba(255, 0, 204, 0.08);
}

/* Subtle neon border */
.auth-card {
  border: 1px solid rgba(0, 216, 255, 0.2);
  box-shadow:
    0 0 20px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(197, 0, 156, 0.1);
}

/* ===== Brand Logo ===== */
.auth-brand {
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-brand__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  text-decoration: none;
}

.auth-brand__logo .logo-img {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.4));
}

.auth-brand__logo span {
  background: linear-gradient(to right, var(--neon-cyan), var(--neon-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Title & Subtitle ===== */
.auth-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  color: #fff;
  text-shadow: 0 0 10px var(--neon-cyan), 0 0 30px rgba(0, 240, 255, 0.5);
  margin-bottom: 0.25rem;
}

.auth-subtitle {
  text-align: center;
  color: #a0a0b0;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* ===== Google Button ===== */
.auth-btn--google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: #eaeaea;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-btn--google:hover {
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  color: var(--neon-cyan);
}

.auth-btn--google svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ===== Divider ===== */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

/* ===== Form Fields ===== */
.auth-field {
  margin-bottom: 1rem;
}

.auth-label,
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-input,
.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: #ffffff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.3s ease;
}

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

.auth-input:focus,
.form-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 216, 255, 0.2);
  background: rgba(0, 0, 0, 0.6);
}

/* ===== Primary Submit Button ===== */
.auth-btn--primary {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  color: #000;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
  transition: all 0.25s ease;
  margin-top: 0.5rem;
}

.auth-btn--primary:hover {
  box-shadow:
    0 0 20px rgba(0, 240, 255, 0.6),
    0 0 40px rgba(255, 0, 204, 0.4);
  transform: translateY(-2px);
}

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

.auth-btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ===== Alert ===== */
.auth-alert {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  animation: fadeIn 0.3s ease;
}

.auth-alert--error {
  background: rgba(233, 69, 96, 0.15);
  border: 1px solid var(--neon-red);
  color: var(--neon-red);
}

.auth-alert--success {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Footer Text / Links ===== */
.auth-footer-text {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-link {
  color: var(--neon-cyan);
  font-weight: 500;
  transition: text-shadow 0.3s;
}

.auth-link:hover {
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
  color: var(--neon-cyan);
}

/* ===== Password Strength Meter ===== */
.auth-strength-meter {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.auth-strength-bar {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.auth-strength-label {
  display: block;
  font-size: 0.7rem;
  margin-top: 0.25rem;
  min-height: 1em;
}

.auth-strength-label[data-level="weak"] {
  color: var(--neon-red);
}

.auth-strength-label[data-level="fair"] {
  color: #f39c12;
}

.auth-strength-label[data-level="good"] {
  color: #f1c40f;
}

.auth-strength-label[data-level="strong"] {
  color: var(--neon-cyan);
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem;
  }

  .auth-title {
    font-size: 1.6rem;
  }
}