/* Shared styling for the public auth pages (login/register/password-reset/
   password-change) — React port of the inline <style> blocks that used to
   live in each standalone Django template (login.html, register.html,
   registration/password_reset_*.html). Kept as one file since every page
   used byte-identical CSS variables/classes. See
   docs/react-migration-plan.md Phase 5. */

.auth-body {
  font-family: var(--font, 'Montserrat', sans-serif);
  background: var(--bg, #f8fafc);
  color: var(--ink, #0f172a);
  min-height: 100vh;
}

/* ── Card layout (register / password-reset / password-change) ── */
.auth-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-brand {
  display: block;
  width: 130px;
  max-width: 55%;
  height: auto;
  margin: 0 auto 18px;
}

.auth-card {
  background: var(--white, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}

.auth-welcome { font-size: 13px; color: var(--slate, #475569); margin: 20px 0 24px; font-weight: 500; }

.auth-field { margin-bottom: 14px; text-align: left; }

.auth-row { display: flex; gap: 12px; }
.auth-row .auth-field { flex: 1; }

.auth-field label {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--slate, #475569); margin-bottom: 6px;
}

.auth-field .req { color: var(--blue, #2563C9); }

.auth-field input,
.auth-field select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px; font-family: inherit; font-size: 14px;
  color: var(--ink, #0f172a); background: var(--white, #fff); transition: all 0.15s;
}

.auth-field select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.auth-field input:focus,
.auth-field select:focus {
  outline: none; border-color: var(--blue, #2563C9);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-field input::placeholder { color: var(--muted, #94a3b8); font-size: 11px; }

.auth-field-error { font-size: 11px; color: var(--error, #dc2626); margin-top: 4px; font-weight: 600; }
.auth-helptext { font-size: 11px; color: var(--muted, #94a3b8); margin-top: 4px; }
.auth-helptext ul { margin: 4px 0 0 16px; padding: 0; }

.auth-alert {
  border-radius: 10px; padding: 12px 16px; margin-bottom: 18px;
  text-align: left; font-size: 13px; font-weight: 500;
}
.auth-alert-error {
  background: var(--error-light, #fef2f2); border: 1px solid var(--error-pale, #fca5a5); color: var(--error, #dc2626);
}
.auth-alert-success {
  background: var(--success-light, #f0fdf4); border: 1px solid var(--success-pale, #bbf7d0); color: var(--success, #16a34a);
}

.auth-btn {
  display: block;
  width: 100%; padding: 13px; background: var(--blue, #2563C9); color: var(--white, #fff);
  border: none; border-radius: 10px; font-family: inherit; font-size: 13px;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; transition: all 0.15s; margin-top: 6px;
  text-decoration: none; box-sizing: border-box;
}
.auth-btn:hover { background: var(--blue-dark, #1e4fa3); }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-foot { margin-top: 20px; font-size: 13px; color: var(--slate, #475569); }
.auth-foot a { color: var(--blue, #2563C9); font-weight: 600; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

#auth-referral-other-wrap { display: none; margin-top: 10px; }
#auth-referral-other-wrap.visible { display: block; }

@media (max-width: 600px) {
  .auth-card { padding: 32px 24px; }
  .auth-row { flex-direction: column; gap: 0; }
}

/* ── Split layout (login only) ── */
.auth-split { display: grid; grid-template-columns: 1fr 2fr; min-height: 100vh; }

.auth-pane-form {
  background: var(--bg, #f8fafc);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px;
}

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

.auth-mobile-logo { display: none; }

.auth-heading { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; color: var(--ink, #0f172a); }

.auth-pane-brand {
  background: linear-gradient(135deg, var(--blue, #2563C9) 0%, var(--blue-deep, #0d47a1) 100%);
  color: var(--white, #fff);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px;
}
.auth-pane-brand .auth-logo { width: 280px; max-width: 70%; height: auto; }
.auth-pane-brand .auth-tagline {
  font-size: 13px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  color: #fff; margin-top: 18px;
}

@media (max-width: 820px) {
  .auth-split { display: block; min-height: auto; }
  .auth-pane-brand { display: none; }
  .auth-pane-form { min-height: 100vh; align-items: center; padding: 40px 20px; }
  .auth-form-wrap {
    background: var(--white, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 20px;
    padding: 40px 32px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
  }
  .auth-mobile-logo {
    display: block;
    width: 140px; max-width: 60%; height: auto;
    margin: 0 auto 18px;
  }
  .auth-heading { display: none; }
  .auth-welcome { margin: 0 0 24px; }
}
