/* ============================
   AUTH PAGES — Login & Register
   ============================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
}

/* Left panel — branding */
.auth-left {
  width: 45%;
  background: linear-gradient(135deg, rgba(0,229,255,0.04), rgba(124,77,255,0.04));
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.auth-left-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.auth-left-glow {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.08;
}
.auth-left-glow-1 { background: var(--cyan); top: -100px; left: -100px; }
.auth-left-glow-2 { background: var(--purple); bottom: -100px; right: -100px; }

.auth-left-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
}

.auth-brand {
  position: relative;
  z-index: 1;
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  text-decoration: none;
  color: #fff;
}
.auth-logo .logo-icon {
  width: 40px; height: 40px;
  font-size: 20px;
}
.auth-logo span {
  font-size: 22px;
  font-weight: 800;
}

.auth-tagline {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
}
.auth-tagline-hl {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-tagline-sub {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.6;
  max-width: 380px;
  margin-bottom: 48px;
}

/* Features mini list */
.auth-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-feature {
  display: flex;
  align-items: center;
  gap: 14px;
}
.auth-feature-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.auth-feature-text {
  font-size: 14px;
  color: var(--text2);
}
.auth-feature-text strong {
  color: #fff;
  display: block;
  margin-bottom: 2px;
}

/* Right panel — form */
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}
.auth-form-wrap {
  width: 100%;
  max-width: 420px;
}
.auth-form-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}
.auth-form-sub {
  font-size: 15px;
  color: var(--text2);
  margin-bottom: 36px;
}
.auth-form-sub a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
}
.auth-form-sub a:hover { text-decoration: underline; }

/* Form fields */
.auth-field {
  margin-bottom: 20px;
}
.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.auth-input-wrap {
  position: relative;
}
.auth-input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: all 0.25s;
}
.auth-input:focus {
  border-color: var(--cyan);
  background: rgba(0,229,255,0.03);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.08);
}
.auth-input::placeholder { color: #4b5563; }
.auth-input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #4b5563;
  pointer-events: none;
  transition: color 0.25s;
}
.auth-input:focus ~ .auth-input-icon,
.auth-input:focus + .auth-input-icon { color: var(--cyan); }

/* Password toggle */
.auth-pw-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #4b5563;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}
.auth-pw-toggle:hover { color: var(--text); }

/* Password strength */
.auth-pw-strength {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.auth-pw-bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.06);
  transition: background 0.3s;
}
.auth-pw-bar.weak { background: var(--red); }
.auth-pw-bar.medium { background: var(--orange); }
.auth-pw-bar.strong { background: var(--green); }
.auth-pw-label {
  font-size: 11px;
  margin-top: 4px;
  color: var(--text2);
}

/* Forgot password */
.auth-forgot {
  display: block;
  text-align: right;
  font-size: 13px;
  color: var(--cyan);
  text-decoration: none;
  margin-top: -12px;
  margin-bottom: 24px;
}
.auth-forgot:hover { text-decoration: underline; }

/* Submit button */
.auth-submit {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  background: var(--cyan);
  color: #000;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.auth-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,229,255,0.2);
}
.auth-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Loading spinner on button */
.auth-submit.loading {
  color: transparent;
}
.auth-submit.loading::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid rgba(0,0,0,0.15);
  border-top-color: #000;
  border-radius: 50%;
  animation: authSpin 0.6s linear infinite;
}
@keyframes authSpin {
  to { transform: rotate(360deg); }
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
}
.auth-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider-text {
  font-size: 12px;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Google button */
.auth-google {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.25s;
}
.auth-google:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}
.auth-google svg { flex-shrink: 0; }

/* Error message */
.auth-error {
  background: rgba(255,82,82,0.06);
  border: 1px solid rgba(255,82,82,0.15);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--red);
  display: none;
  align-items: center;
  gap: 10px;
}
.auth-error.show { display: flex; }

/* Success message */
.auth-success {
  background: rgba(0,230,118,0.06);
  border: 1px solid rgba(0,230,118,0.15);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--green);
  display: none;
  align-items: center;
  gap: 10px;
}
.auth-success.show { display: flex; }

/* Terms checkbox */
.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}
.auth-terms input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--cyan);
  flex-shrink: 0;
}
.auth-terms label {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}
.auth-terms a {
  color: var(--cyan);
  text-decoration: none;
}
.auth-terms a:hover { text-decoration: underline; }

/* Name fields row */
.auth-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .auth-page { flex-direction: column; }
  .auth-left {
    width: 100%;
    padding: 100px 40px 40px;
    min-height: auto;
  }
  .auth-tagline { font-size: 28px; }
  .auth-features { display: none; }
  .auth-right { padding: 40px; }
}
@media (max-width: 500px) {
  .auth-left { padding: 80px 24px 32px; }
  .auth-right { padding: 24px; }
  .auth-name-row { grid-template-columns: 1fr; }
}
