:root {
  color-scheme: light;
  --navy: #0b1d3d;
  --green: #0f6b4f;
  --gold: #d4af37;
  --muted: #63716d;
  --line: #dce5df;
  --body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --heading: 'Poppins', var(--body);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100dvh; background: #f5f8f5; color: var(--navy); font: 400 1rem/1.65 var(--body); display: flex; flex-direction: column; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: wait; opacity: .7; }
a { color: var(--green); text-underline-offset: 4px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b08b17; outline-offset: 4px; }
.skip-link { position: fixed; top: -90px; inset-inline-start: 16px; z-index: 5; padding: 12px 20px; background: var(--navy); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.auth-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px clamp(20px, 6vw, 80px); background: white; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); min-width: 0; }
.brand img { object-fit: contain; flex-shrink: 0; border-radius: 50%; }
.brand-name { display: flex; flex-direction: column; line-height: 1.4; }
.brand-name strong { font: 600 1.25rem/1.4 var(--heading); letter-spacing: .09em; }
.brand-name span { font-size: .75rem; color: var(--green); }
.language-button { flex-shrink: 0; min-width: 64px; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; background: white; color: var(--navy); font-size: .875rem; }
.language-button:hover { border-color: var(--green); background: #f3f8f4; }
.auth-main { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 20px 32px; }
.auth-card { width: min(100%, 470px); padding: clamp(26px, 5vw, 42px); border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 14px 50px #0b1d3d08; overflow-wrap: anywhere; }
.eyebrow { color: var(--green); font-size: .6875rem; font-weight: 700; letter-spacing: .12em; }
h1 { font: 600 clamp(1.55rem, 5vw, 1.95rem)/1.35 var(--heading); letter-spacing: -.025em; margin: 10px 0 12px; }
p { margin: 0 0 18px; }
.intro { font-size: .9375rem; color: var(--muted); margin-bottom: 26px; }
label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 8px; }
input { width: 100%; min-width: 0; min-height: 50px; border: 1px solid #cddad1; border-radius: 10px; padding: 12px 14px; background: #fff; color: var(--navy); }
input::placeholder { color: #79847e; }
input:focus { border-color: var(--green); }
#password { margin-bottom: 8px; }
#signin-form label:not(:first-child) { margin-top: 16px; }
#mode-button, #reset-button { margin-top: 12px; }
.field-note { font-size: .8125rem; color: var(--muted); margin: 9px 0 20px; }
.button { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 11px; border: 1px solid transparent; font-weight: 600; font-size: .9375rem; line-height: 1.6; transition: background .15s; }
.button-primary { color: white; background: var(--green); }
.button-primary:hover:not(:disabled) { background: #0b543e; }
.button-secondary { background: #f5f8f5; border-color: var(--line); color: var(--navy); }
.button-secondary:hover:not(:disabled) { background: #eaf1eb; }
.eligibility-note { padding-top: 21px; margin: 22px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
.email-destination { padding: 11px 14px; background: #f2f7f3; border: 1px solid var(--line); border-radius: 10px; font-weight: 500; font-size: .875rem; }
.account-label { display: block; font-size: .8125rem; color: var(--muted); margin-bottom: 7px; }
.confirmation-note { color: var(--muted); font-size: .9375rem; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; margin-top: 10px; }
.status-message, .error-message { font-size: .875rem; line-height: 1.8; padding: 12px 14px; border-radius: 10px; margin: 18px 0 0; }
.status-message { background: #eef6ee; border: 1px solid #d5e8d6; color: #205b39; }
.error-message { background: #fff4ee; border: 1px solid #f0d7c8; color: #823b20; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; font-size: .875rem; color: var(--muted); }
.auth-footer { text-align: center; padding: 12px 20px 24px; color: var(--muted); font-size: .75rem; }
html[dir='rtl'] { --body: 'Noto Sans Arabic', system-ui, sans-serif; --heading: 'Noto Sans Arabic', system-ui, sans-serif; }
html[dir='rtl'] .auth-card { text-align: right; }
html[dir='rtl'] .eyebrow { letter-spacing: 0; font-size: .75rem; }
html[dir='rtl'] h1 { line-height: 1.7; letter-spacing: 0; }
html[dir='rtl'] .brand-name strong { font-family: 'Poppins', sans-serif; }
html[dir='rtl'] input[type='email'] { font-family: 'DM Sans', system-ui, sans-serif; text-align: left; }
html[dir='rtl'] .intro, html[dir='rtl'] .button, html[dir='rtl'] .field-note, html[dir='rtl'] .eligibility-note { line-height: 1.9; }
@media (max-width: 480px) {
  .auth-header { padding: 16px 18px; gap: 10px; }
  .brand { gap: 8px; }
  .brand img { width: 44px; height: 44px; }
  .brand-name strong { font-size: 1.0625rem; }
  .brand-name span { font-size: .6875rem; }
  .language-button { min-width: 58px; padding-inline: 12px; }
  .auth-main { padding: 30px 16px 20px; justify-content: flex-start; }
  .auth-card { border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
