/* ================================================
   Auth Pages — Premium Design  (login / register)
   ================================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0d0f;
  position: relative;
  overflow: hidden;
  padding: clamp(16px, 5vw, 48px) clamp(12px, 4vw, 24px);
}

/* Background glow orbs */
.auth-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.auth-glow-1 {
  width: clamp(220px, 45vw, 480px);
  height: clamp(220px, 45vw, 480px);
  background: radial-gradient(circle, rgba(26,188,156,0.16) 0%, transparent 70%);
  top: -100px;
  left: -100px;
}
.auth-glow-2 {
  width: clamp(160px, 32vw, 320px);
  height: clamp(160px, 32vw, 320px);
  background: radial-gradient(circle, rgba(52,152,219,0.12) 0%, transparent 70%);
  bottom: -70px;
  right: -60px;
}

/* Card */
.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: clamp(300px, 92vw, 540px);
  background: rgba(18,18,20,0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: clamp(28px, 6vw, 52px) clamp(22px, 5vw, 44px);
  box-shadow:
    0 32px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(26,188,156,0.05) inset;
}

/* Top gradient bar */
.auth-card-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6 0%, #3498db 50%, #9b59b6 100%);
  border-radius: 20px 20px 0 0;
}

/* Brand row */
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(22px, 3.5vw, 32px);
}
.auth-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(26,188,156,0.18), rgba(52,152,219,0.18));
  border: 1px solid rgba(26,188,156,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(26,188,156,0.18);
}
.auth-brand-name {
  font-size: clamp(13px, 1.6vw, 15px);
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.03em;
}

/* Title / sub */
.auth-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 7px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.auth-sub {
  font-size: clamp(12px, 1.4vw, 14px);
  color: rgba(255,255,255,0.38);
  margin: 0 0 clamp(22px, 3.5vw, 30px);
  line-height: 1.5;
}

/* Alert */
.auth-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 18px;
  line-height: 1.4;
}
.auth-alert-err {
  background: rgba(231,76,60,0.1);
  border: 1px solid rgba(231,76,60,0.22);
  color: #e05a4a;
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.2vw, 20px);
}

/* Two-column grid */
.auth-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 2vw, 16px);
}
@media (max-width: 500px) {
  .auth-row-2col {
    grid-template-columns: 1fr;
  }
}

/* Field wrap */
.auth-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.auth-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Input row */
.auth-field {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 11px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.auth-field:focus-within {
  border-color: rgba(26,188,156,0.45);
  background: rgba(26,188,156,0.04);
  box-shadow: 0 0 0 3px rgba(26,188,156,0.08);
}
.auth-field-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.25);
}
.auth-field input[type=text],
.auth-field input[type=email],
.auth-field input[type=password] {
  flex: 1;
  background: transparent;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #fff;
  font-size: clamp(13px, 1.5vw, 14px);
  padding: clamp(11px, 1.6vw, 14px) clamp(10px, 1.5vw, 14px) clamp(11px, 1.6vw, 14px) 0;
  min-width: 0;
  width: 100%;
}
.auth-field input::placeholder {
  color: rgba(255,255,255,0.18);
}

/* Eye toggle */
.auth-eye {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 12px;
  color: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  transition: color 0.2s;
  flex-shrink: 0;
}
.auth-eye:hover { color: rgba(255,255,255,0.55); }

/* Remember / forgot row */
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -4px;
  flex-wrap: wrap;
  gap: 6px;
}
.auth-remember {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  user-select: none;
}
.auth-remember input[type=checkbox] {
  accent-color: #8b5cf6;
  width: 14px;
  height: 14px;
  cursor: pointer;
}
.auth-forgot {
  font-size: 13px;
  color: rgba(26,188,156,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.auth-forgot:hover { color: #8b5cf6; }

/* Password strength */
.pwd-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: -8px;
}
.pwd-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  overflow: hidden;
}
.pwd-fill {
  height: 100%;
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease, background 0.3s ease;
}
.pwd-strength span {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* Perks */
.auth-perks {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px 16px;
  background: rgba(26,188,156,0.04);
  border: 1px solid rgba(26,188,156,0.1);
  border-radius: 11px;
  margin-top: -4px;
}
.auth-perk {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: rgba(255,255,255,0.42);
  line-height: 1.4;
}
.perk-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  flex-shrink: 0;
}

/* Submit button */
.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: clamp(13px, 1.8vw, 16px) 24px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #fff;
  font-size: clamp(14px, 1.6vw, 15px);
  font-weight: 700;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 22px rgba(26,188,156,0.32);
  letter-spacing: 0.03em;
  margin-top: 2px;
}
.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(26,188,156,0.45);
}
.auth-submit:active { transform: translateY(0); }
.auth-submit-icon { transition: transform 0.2s; }
.auth-submit:hover .auth-submit-icon { transform: translateX(4px); }

/* Terms */
.auth-terms {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  margin: 0;
  line-height: 1.6;
}
.auth-terms a { color: rgba(26,188,156,0.65); text-decoration: none; }
.auth-terms a:hover { color: #8b5cf6; }

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: clamp(18px, 2.8vw, 26px) 0 14px;
  color: rgba(255,255,255,0.2);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.07);
}

/* Switch buttons */
.auth-switch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: clamp(12px, 1.7vw, 14px) 24px;
  background: rgba(26,188,156,0.09);
  color: #8b5cf6;
  font-size: clamp(13px, 1.5vw, 14px);
  font-weight: 600;
  border: 1px solid rgba(26,188,156,0.22);
  border-radius: 11px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.02em;
}
.auth-switch-btn:hover {
  background: rgba(26,188,156,0.17);
  border-color: rgba(26,188,156,0.42);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(26,188,156,0.2);
  color: #8b5cf6;
}

/* Outlined variant (register page → login link) */
.auth-switch-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.45);
}
.auth-switch-outline:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.75);
  box-shadow: none;
  transform: translateY(-1px);
}

/* Prevent theme styles from overriding inputs inside auth-card */
.auth-card input[type=text],
.auth-card input[type=email],
.auth-card input[type=password] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent !important;
  color: #fff !important;
}
.auth-card input:-webkit-autofill,
.auth-card input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(18,18,20,0.94) inset !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
}
