/* ═══════════════════════════════════════════════════════════════════
   spndrai.com — Auth Pages (login, register, forgot/reset password)
═══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.auth-body {
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #0a0312;
  color: #e8ddf4;
}

/* ── Two-column layout ──────────────────────────────────────────── */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ── Left panel (dark brand) ────────────────────────────────────── */
.auth-left {
  background: linear-gradient(145deg, #0d0812 0%, #1a0a24 45%, #0d1628 100%);
  padding: 48px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(209,116,210,0.1);
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.auth-orb--1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(209,116,210,0.18), transparent 70%);
  top: -120px; left: -80px;
}
.auth-orb--2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(63,86,127,0.18), transparent 70%);
  bottom: -60px; right: -60px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}
.auth-logo-dot {
  background: linear-gradient(135deg, #d174d2, #e0563f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-left-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.auth-headline {
  font-size: clamp(30px, 2.8vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #f0eaf8;
  margin-bottom: 14px;
}
.text-gradient {
  background: linear-gradient(135deg, #d174d2, #e0563f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-tagline {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(240,234,248,0.55);
  margin-bottom: 36px;
  max-width: 320px;
}

.auth-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(240,234,248,0.78);
}
.auth-feat-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(209,116,210,0.15);
  border: 1px solid rgba(209,116,210,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #d174d2;
  font-weight: 800;
  flex-shrink: 0;
}

.auth-social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(240,234,248,0.35);
  position: relative;
  z-index: 1;
}
.auth-avatars { display: flex; }
.mini-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border: 2px solid #0a0312;
  margin-left: -7px;
}
.mini-avatar:first-child { margin-left: 0; }

/* ── Right panel (form area) ────────────────────────────────────── */
.auth-right {
  background: #110720;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}

.auth-form-wrap {
  width: 100%;
  max-width: 400px;
}

.auth-form-header {
  margin-bottom: 28px;
}
.auth-form-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: #f0eaf8;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.auth-form-header p {
  font-size: 14px;
  color: rgba(240,234,248,0.45);
  line-height: 1.5;
}

/* Plan badge */
.auth-plan-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(209,116,210,0.1);
  border: 1px solid rgba(209,116,210,0.25);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #d174d2;
  margin-bottom: 20px;
}

/* Banners */
.auth-error-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.22);
  border-radius: 10px;
  font-size: 13px;
  color: #f87171;
  margin-bottom: 20px;
}
.auth-success-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.22);
  border-radius: 10px;
  font-size: 13px;
  color: #34d399;
  margin-bottom: 20px;
}
.auth-info-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(96,165,250,0.08);
  border: 1px solid rgba(96,165,250,0.22);
  border-radius: 10px;
  font-size: 13px;
  color: #93c5fd;
  margin-bottom: 20px;
}

/* ── Form elements ──────────────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(240,234,248,0.65);
}
.form-group .auth-input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #f0eaf8;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.form-group .auth-input::placeholder { color: rgba(240,234,248,0.25); }
.form-group .auth-input:focus {
  background: rgba(255,255,255,0.08);
  border-color: #d174d2;
  box-shadow: 0 0 0 3px rgba(209,116,210,0.12);
}
.form-group--error .auth-input {
  border-color: rgba(248,113,113,0.5);
}
.form-group--error .auth-input:focus {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248,113,113,0.1);
}

.form-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: #f87171;
  line-height: 1.4;
}
.form-error-link {
  color: #d174d2;
  text-decoration: none;
  margin-left: 4px;
  font-weight: 600;
}
.form-error-link:hover { text-decoration: underline; }

/* Input with show/hide toggle */
.input-with-toggle { position: relative; }
.input-with-toggle .auth-input { padding-right: 44px; }
.input-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(240,234,248,0.35);
  cursor: pointer;
  padding: 4px;
  font-size: 17px;
  line-height: 1;
  transition: color 0.15s;
  display: flex;
  align-items: center;
}
.input-toggle-btn:hover { color: rgba(240,234,248,0.75); }

/* Input with inline icon (confirm password match) */
.input-with-status { position: relative; }
.input-with-status .auth-input { padding-right: 40px; }
.input-status-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.input-status-icon.visible { opacity: 1; }
.input-status-icon.match { color: #34d399; }
.input-status-icon.mismatch { color: #f87171; }

/* Password strength bar */
.strength-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  min-height: 16px;
}
.strength-bar__track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 999px;
  overflow: hidden;
}
.strength-bar__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.3s ease, background 0.3s ease;
}
.strength-bar__label {
  font-size: 11px;
  font-weight: 600;
  min-width: 72px;
  text-align: right;
  transition: color 0.3s;
}

/* Checkbox row */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.form-check input[type="checkbox"] {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #d174d2;
  cursor: pointer;
}
.form-check label {
  font-size: 13px;
  color: rgba(240,234,248,0.45);
  line-height: 1.5;
  cursor: pointer;
}
.form-check label a {
  color: #d174d2;
  text-decoration: none;
}
.form-check label a:hover { text-decoration: underline; }

/* Remember me / forgot password row */
.form-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.forgot-link {
  font-size: 12px;
  color: rgba(240,234,248,0.4);
  text-decoration: none;
  transition: color 0.15s;
}
.forgot-link:hover { color: #d174d2; }

/* ── Submit button ──────────────────────────────────────────────── */
.auth-submit-btn {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  background: linear-gradient(135deg, #d174d2, #e0563f);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(209,116,210,0.3);
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}
.auth-submit-btn:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(209,116,210,0.45);
}
.auth-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Divider ────────────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(240,234,248,0.18);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.07);
}

/* ── Switch link ────────────────────────────────────────────────── */
.auth-switch {
  text-align: center;
  font-size: 14px;
  color: rgba(240,234,248,0.4);
}
.auth-switch a {
  color: #d174d2;
  font-weight: 600;
  text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }

/* ── Centered layout (forgot/reset) ────────────────────────────── */
.auth-centered {
  min-height: 100vh;
  background: #0a0312;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-centered-logo {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.auth-centered-card {
  width: 100%;
  max-width: 440px;
  background: #110720;
  border: 1px solid rgba(209,116,210,0.15);
  border-radius: 20px;
  padding: 40px;
}
.auth-centered-card.text-center { text-align: center; }

.auth-big-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #d174d2, #e0563f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-big-icon.amber {
  background: linear-gradient(135deg, #f59e0b, #e0563f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-centered-card h2 {
  font-size: 24px;
  font-weight: 800;
  color: #f0eaf8;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.auth-centered-card p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(240,234,248,0.5);
  margin-bottom: 24px;
}
.auth-centered-card .auth-form { margin-top: 24px; }

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 13px;
  color: rgba(240,234,248,0.4);
  text-decoration: none;
  transition: color 0.15s;
}
.auth-back-link:hover { color: #d174d2; }

.auth-resend-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  color: rgba(240,234,248,0.35);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-resend-btn {
  background: none;
  border: 1px solid rgba(209,116,210,0.25);
  border-radius: 8px;
  color: #d174d2;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.auth-resend-btn:hover { background: rgba(209,116,210,0.08); }

/* ── Ghost button (secondary) ───────────────────────────────────── */
.auth-ghost-btn {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  background: transparent;
  color: rgba(240,234,248,0.65);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.auth-ghost-btn:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.18);
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right {
    background: #0a0312;
    padding: 32px 24px;
    align-items: flex-start;
    padding-top: 56px;
  }
  .auth-form-wrap { max-width: 100%; }
}
