.auth-page { padding: 48px clamp(16px,4vw,48px) 64px; }
.auth-shell { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1fr); max-width: 1120px; min-height: 620px; margin: auto; overflow: hidden; background: var(--surface); border: 1px solid color-mix(in srgb,var(--gold) 34%,var(--line)); border-radius: 28px; box-shadow: 0 30px 80px rgba(0,47,29,.12); }

.auth-brand { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; padding: 48px 44px; color: #fffbf2; background: radial-gradient(circle at 10% 95%,rgba(241,204,106,.14),transparent 30%),linear-gradient(150deg,#03472d,#002f1d); }
.auth-brand::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -170px; top: -170px; border: 1px solid rgba(239,211,122,.14); border-radius: 50%; box-shadow: 0 0 0 60px rgba(239,211,122,.03),0 0 0 120px rgba(239,211,122,.02); }
.auth-brand-top { display: grid; justify-items: start; gap: 4px; }
.auth-seal { display: grid; width: 72px; height: 72px; margin-bottom: 18px; padding: 7px; place-items: center; background: rgba(0,0,0,.18); border: 1px solid rgba(212,166,59,.6); border-radius: 22px; box-shadow: 0 0 0 7px rgba(212,166,59,.12); }
.auth-seal img { width: 100%; height: 100%; object-fit: contain; }
.auth-brand-arabic { margin: 0; color: #efd37a; font: 400 52px/1.2 "Amiri","Scheherazade New",serif; }
.auth-brand-tagline { margin: 0; color: rgba(255,249,237,.72); font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.auth-verse { margin: 0; padding: 24px; text-align: center; background: rgba(255,251,242,.05); border: 1px solid rgba(212,166,59,.3); border-radius: 18px; }
.auth-verse .arabic { margin: 0 0 12px; color: #fffbf2 !important; font: 400 30px/1.6 "Amiri","Scheherazade New",serif; }
.auth-verse figcaption { display: grid; gap: 6px; color: rgba(255,249,237,.82); font: italic 400 15px/1.5 Fraunces,Georgia,serif; }
.auth-verse figcaption span { color: #efd37a; font: 700 11px Inter,"Segoe UI",sans-serif; letter-spacing: .12em; text-transform: uppercase; font-style: normal; }
.auth-benefits { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.auth-benefits li { display: flex; align-items: center; gap: 12px; color: rgba(255,249,237,.85); font-size: 14px; line-height: 1.5; }
.auth-benefits span { display: grid; flex: 0 0 auto; width: 26px; height: 26px; place-items: center; color: #002f1d; background: #efd37a; border-radius: 50%; font-size: 11px; }

.auth-panel { display: grid; place-items: center; padding: 48px clamp(24px,5vw,64px); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .eyebrow { margin-bottom: 12px; color: var(--gold); font-size: 11px; letter-spacing: .14em; }
.auth-card h1 { margin: 0; color: var(--ink); font: 400 38px/1.15 Fraunces,Georgia,serif; letter-spacing: -.01em; }
.auth-card h1 em { color: var(--gold); font-style: normal; }
.auth-intro { margin: 12px 0 28px; color: var(--muted); font-size: 15px; line-height: 1.65; }

.auth-form { display: grid; gap: 16px; }
.auth-form label { display: grid; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 700; }
.auth-form input { width: 100%; height: 50px; padding: 0 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; outline: 0; font: 400 15px Inter,"Segoe UI",sans-serif; transition: border-color .2s ease,box-shadow .2s ease; }
.auth-form input::placeholder { color: var(--muted); opacity: .75; }
.auth-form input:focus { border-color: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb,var(--green) 14%,transparent); }
.auth-password { position: relative; display: block; }
.auth-password input { padding-right: 72px; }
.auth-reveal { position: absolute; top: 50%; right: 8px; min-height: 34px; padding: 0 12px; color: var(--green); background: transparent; border: 0; border-radius: 8px; transform: translateY(-50%); font: 700 12px Inter,"Segoe UI",sans-serif; cursor: pointer; }
.auth-reveal:hover { background: color-mix(in srgb,var(--green) 8%,transparent); }
.auth-terms { display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: start; gap: 10px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.auth-form .auth-terms input { width: 18px; height: 18px; margin: 1px 0 0; padding: 0; accent-color: var(--green); cursor: pointer; box-shadow: none; }
.auth-form .auth-terms label { display: block; color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.55; cursor: pointer; }
.auth-terms a { color: var(--green); font-weight: 700; text-underline-offset: 3px; }
.auth-terms a:hover { color: var(--gold); }
.auth-terms:has(input:checked) { border-color: color-mix(in srgb,var(--green) 40%,var(--line)); }
.auth-error { margin: 0; min-height: 0; }
.auth-error:empty { display: none; }
.auth-error:not(:empty) { padding: 10px 14px; background: rgba(170,51,51,.07); border: 1px solid rgba(170,51,51,.2); border-radius: 10px; }
.auth-submit { width: 100%; min-height: 52px; margin-top: 4px; font-size: 15px; }
.auth-submit:disabled { opacity: .7; cursor: progress; transform: none; }
.auth-submit.is-loading span { animation: auth-nudge .8s ease-in-out infinite alternate; }
@keyframes auth-nudge { to { transform: translateX(4px); } }

.auth-switch { margin: 24px 0 0; padding-top: 22px; color: var(--muted); font-size: 14px; text-align: center; border-top: 1px solid var(--line); }
.auth-switch a { color: var(--green); font-weight: 800; text-decoration: none; }
.auth-switch a:hover { color: var(--gold); }
.auth-fineprint { margin: 18px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.6; text-align: center; opacity: .85; }
.auth-page a:focus-visible,.auth-page button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

[data-theme="night"] .auth-shell { box-shadow: 0 30px 80px rgba(0,0,0,.35); }
[data-theme="night"] .auth-brand { background: radial-gradient(circle at 10% 95%,rgba(241,204,106,.1),transparent 30%),linear-gradient(150deg,#0f3a28,#071711); }
[data-theme="night"] .auth-submit { color: #071711; }
[data-theme="night"] .auth-error:not(:empty) { color: #f2a7a7; background: rgba(242,167,167,.08); border-color: rgba(242,167,167,.25); }

@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; min-height: 0; }
  .auth-brand { gap: 22px; padding: 32px 28px; }
  .auth-brand-top { grid-template-columns: auto 1fr; align-items: center; column-gap: 16px; }
  .auth-seal { grid-row: span 2; width: 58px; height: 58px; margin: 0; border-radius: 18px; }
  .auth-brand-arabic { font-size: 38px; }
  .auth-verse, .auth-benefits { display: none; }
}
@media (max-width: 600px) {
  .auth-page { padding: 20px 12px 96px; }
  .auth-shell { border-radius: 22px; }
  .auth-brand { padding: 24px 20px; }
  .auth-panel { padding: 30px 20px 34px; }
  .auth-card h1 { font-size: 30px; }
  .auth-intro { margin-bottom: 22px; font-size: 14px; }
  .auth-form input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .auth-submit.is-loading span { animation: none; } }
