/* Sign-in pages (templates/account/account_base.html and templates/allauth/elements/*).
   Standalone: no theme stylesheet is loaded here, so the pages stay light and fast on phones. */
:root { --a-primary: #8231D3; --a-primary-dark: #6a22b3; --a-tint: #f4ecfd; --a-ink: #0a0a0a; --a-text: #404040;
  --a-muted: #74788d; --a-line: #e3e6ef; --a-bg: #f4f5f7; --a-danger: #e5454e; --a-success: #01b81a; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body.auth { font-family: "Jost", "Hind Siliguri", "Noto Sans Bengali", sans-serif; color: var(--a-text); background: var(--a-bg);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.auth a { color: var(--a-primary); text-decoration: none; }
.auth a:hover { text-decoration: underline; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout */
.auth__wrap { display: grid; grid-template-columns: minmax(320px, 5fr) 7fr; min-height: 100vh; }
.auth__side { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 40px 48px; color: #fff;
  background: radial-gradient(circle at 85% 10%, rgba(255,255,255,.14) 0, transparent 40%),
              radial-gradient(circle at 10% 90%, rgba(255,255,255,.10) 0, transparent 35%),
              linear-gradient(150deg, #8231D3 0%, #5f1fb0 100%); }
.auth__logo img { height: 32px; width: auto; display: block; }
.auth__logo--white { align-self: flex-start; background: #fff; border-radius: 12px; padding: 8px 14px;
  box-shadow: 0 6px 18px rgba(40, 10, 80, .25); }
.auth__pitch { margin: auto 0; max-width: 420px; }
.auth__pitch h2 { color: #fff; font-size: 30px; line-height: 1.3; font-weight: 600; margin: 0 0 28px; }
.auth__points { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 16px; }
.auth__points li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; color: rgba(255,255,255,.92); }
.auth__points i { flex: none; display: inline-flex; width: 36px; height: 36px; border-radius: 10px; align-items: center; justify-content: center;
  background: rgba(255,255,255,.16); font-size: 20px; margin-top: -4px; }
.auth__gift { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border-radius: 999px;
  background: #fff; color: var(--a-primary); font-weight: 600; font-size: 15px; }
.auth__gift i { font-size: 20px; }
.auth__side-foot { margin: 0; font-size: 13px; color: rgba(255,255,255,.6); }

.auth__main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; }
.auth__logo--top, .auth__gift--top { display: none !important; }
.auth__box { width: 100%; max-width: 420px; background: #fff; border-radius: 16px; padding: 36px 36px 28px;
  box-shadow: 0 10px 40px rgba(10, 10, 10, .06); }
.auth__legal { margin: 20px 0 0; font-size: 13px; color: var(--a-muted); }
.auth__legal a { color: var(--a-muted); }

/* Text */
.auth__icon { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; background: var(--a-tint); color: var(--a-primary);
  align-items: center; justify-content: center; font-size: 28px; margin-bottom: 14px; }
.auth__title { font-size: 24px; font-weight: 600; color: var(--a-ink); line-height: 1.3; margin: 0 0 6px; }
.auth__subtitle { font-size: 18px; font-weight: 600; color: var(--a-ink); margin: 20px 0 8px; }
.auth__lead { color: var(--a-muted); margin: 0 0 22px; }
.auth__lead strong { color: var(--a-ink); font-weight: 500; word-break: break-all; }
.auth__switch { text-align: center; margin: 22px 0 0; color: var(--a-muted); }
.auth__switch a { font-weight: 500; }

/* Google */
.auth-google { margin: 0; }
.auth-google__note { font-size: 13px; color: var(--a-muted); text-align: center; margin: 8px 0 0; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; color: var(--a-muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--a-line); }

/* Tabs */
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 10px; background: var(--a-bg); margin-bottom: 20px; }
.auth-tabs__tab { text-align: center; padding: 8px 0; border-radius: 8px; color: var(--a-muted) !important; font-weight: 500; text-decoration: none !important; }
.auth-tabs__tab.is-on { background: #fff; color: var(--a-ink) !important; box-shadow: 0 1px 3px rgba(10,10,10,.08); }

/* Forms */
.auth-form { margin: 0; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: 14px; font-weight: 500; color: var(--a-ink); margin-bottom: 6px; }
.auth-field__row { display: flex; justify-content: space-between; align-items: baseline; }
.auth-link-sm { font-size: 13px; }
.auth-field input:not([type=checkbox]):not([type=radio]), .auth-field select, .auth-field textarea {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--a-line); border-radius: 10px; background: #fff;
  font: inherit; font-size: 16px; color: var(--a-ink); transition: border-color .15s, box-shadow .15s; }
.auth-field textarea { height: auto; padding: 10px 14px; }
.auth-field input:focus, .auth-field select:focus, .auth-field textarea:focus { outline: 0; border-color: var(--a-primary); box-shadow: 0 0 0 3px rgba(130,49,211,.14); }
.auth-field.has-error input { border-color: var(--a-danger); }
.auth-err { color: var(--a-danger); font-size: 13px; margin: 6px 0 0; }
.auth-err ul { margin: 0; padding-left: 18px; }
.auth-err--center { text-align: center; }
.auth-hint { display: block; color: var(--a-muted); font-size: 13px; margin-top: 6px; }
.auth-hint--center { text-align: center; margin: 12px 0 0; }
.auth-pass { position: relative; }
.auth-pass input { padding-right: 48px !important; }
.auth-pass__eye { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--a-muted);
  border-radius: 8px; cursor: pointer; font-size: 20px; }
.auth-pass__eye:hover { color: var(--a-ink); background: var(--a-bg); }
.auth-check { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 14px; cursor: pointer; }
.auth-check input { width: 18px; height: 18px; accent-color: var(--a-primary); }
.auth-code { text-align: center; letter-spacing: .5em; font-size: 28px !important; font-weight: 600; height: 64px !important; padding-left: .5em !important; }

/* Buttons */
.auth-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; padding: 0 18px;
  border-radius: 10px; border: 1px solid transparent; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer;
  text-decoration: none !important; transition: background .15s, border-color .15s, box-shadow .15s; }
.auth-btn--primary { background: var(--a-primary); color: #fff !important; }
.auth-btn--primary:hover { background: var(--a-primary-dark); }
.auth-btn--google { background: #fff; color: var(--a-ink) !important; border-color: #dadce0; height: 52px; font-size: 16px; }
.auth-btn--google:hover { background: #f8f9fb; box-shadow: 0 1px 3px rgba(10,10,10,.1); }
.auth-btn--ghost { background: #fff; color: var(--a-ink) !important; border-color: var(--a-line); margin-top: 10px; }
.auth-btn--ghost:hover { border-color: var(--a-primary); }
.auth-btn--danger { background: var(--a-danger); color: #fff !important; }
.auth-btn:focus-visible { outline: 2px solid var(--a-primary); outline-offset: 2px; }
.auth-actions { display: grid; gap: 10px; margin-top: 8px; }
.auth-actions .auth-btn--ghost { margin-top: 0; }
.auth-linkbtn { border: 0; background: none; padding: 0; font: inherit; color: var(--a-primary); cursor: pointer; }
.auth-linkbtn:hover { text-decoration: underline; }

/* Messages, badges, panels */
.auth__messages { margin-bottom: 16px; }
.auth-alert { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; font-size: 14px; background: var(--a-tint); color: var(--a-primary-dark); }
.auth-alert--danger { background: #fdecee; color: #b4232c; }
.auth-alert--success { background: #e8f8ec; color: #0a7a1c; }
.auth-alert--warning { background: #fff5e5; color: #9a5b00; }
.auth-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: var(--a-bg); color: var(--a-text); margin-left: 4px; }
.auth-badge--success { background: #e8f8ec; color: #0a7a1c; }
.auth-badge--warning { background: #fff5e5; color: #9a5b00; }
.auth-panel + .auth-panel { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--a-line); }
.auth-hr { border: 0; border-top: 1px solid var(--a-line); margin: 22px 0; }

/* Phones: the pitch panel becomes a short band above the form */
@media (max-width: 991.98px) {
  .auth__wrap { grid-template-columns: 1fr; }
  .auth__side { display: none; }
  .auth__main { justify-content: flex-start; padding: 24px 16px 32px; }
  .auth__logo--top { display: block !important; margin: 4px 0 14px; }
  .auth__logo--top img { height: 30px; }
  .auth__gift--top { display: inline-flex !important; background: var(--a-tint); font-size: 14px; padding: 6px 14px; margin-bottom: 16px; }
}
@media (max-width: 480px) {
  .auth__box { padding: 24px 18px 22px; border-radius: 14px; box-shadow: none; }
  .auth__title { font-size: 22px; }
}
.auth-form + .auth__lead { margin-top: 16px; font-size: 14px; }

/* Google's own button (accounts/onetap.py); the plain button stays until it has drawn */

/* Sign-up through an invite link: who invited the visitor */
.auth-invite { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px;
  background: var(--a-tint); color: var(--a-primary); font-weight: 600; font-size: 15px; }
.auth-invite .av { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px;
  border-radius: 50%; object-fit: cover; background: #fff; font-size: 13px; }
