/* GAWDA sign-in / sign-up / password pages (redesign 2026-10-07): a navy brand panel beside the form on wide
   screens, a slim brand bar above it on phones. Light and dark tokens; dark follows the device until the
   in-app theme switch exists. Loaded only by views/site/modern/subscription_theme.php. */
:root {
  --a-page: #F4F8FE; --a-card: #FFFFFF; --a-field: #F7FAFF; --a-line: #DCE6F4; --a-line-2: #C9D8EE;
  --a-ink: #162D4D; --a-ink-2: #34507A; --a-ink-3: #5A7397;
  --a-blue: #0A66D6; --a-blue-2: #0852AD; --a-blue-soft: #EAF2FD; --a-gold: #FFBD59;
  --a-ok: #00A86C; --a-ok-soft: #E0F7ED; --a-bad: #B02A37; --a-bad-soft: #FBE7E9;
  --a-shadow: 0 2px 6px rgba(22,45,77,.05), 0 18px 40px rgba(22,45,77,.08);
  color-scheme: light;
}
html[data-theme="dark"] {
    --a-page: #0B1424; --a-card: #13213A; --a-field: #0F1B30; --a-line: #23365A; --a-line-2: #2F4670;
    --a-ink: #E7EEF9; --a-ink-2: #C3D3EC; --a-ink-3: #93A9CB;
    --a-blue: #5B9BEA; --a-blue-2: #8DB8F2; --a-blue-soft: #1B3357;
    --a-ok-soft: #10362B; --a-bad: #F08A94; --a-bad-soft: #3A1C24;
    --a-shadow: 0 18px 40px rgba(0,0,0,.35);
    color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.g-auth { margin: 0; background: var(--a-page); color: var(--a-ink-2); font-family: 'Outfit', 'Zain', Tahoma, sans-serif; font-size: 15px; line-height: 1.6; }
html[dir="rtl"] body.g-auth { font-family: 'Zain', 'Outfit', Tahoma, sans-serif; font-size: 16px; }
.g-auth a { color: var(--a-blue); }
.g-auth a:hover { color: var(--a-blue-2); text-decoration: none; }

.ga { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 44%) minmax(0, 1fr); }

/* the brand panel */
.ga-side { position: relative; overflow: hidden; color: #DCE9FB; padding: 40px 48px; display: flex; flex-direction: column; gap: 28px;
  background: radial-gradient(120% 80% at 0% 0%, #1B4B8F 0%, rgba(27,75,143,0) 55%), linear-gradient(160deg, #162D4D 0%, #0E2140 60%, #0B1A33 100%); }
.ga-side::after { content: ""; position: absolute; inset: auto -120px -160px auto; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(91,155,234,.10); pointer-events: none; }
html[dir="rtl"] .ga-side::after { inset: auto auto -160px -120px; }
.ga-logo { display: inline-flex; align-items: center; background: #fff; border-radius: 16px; padding: 10px 16px; align-self: flex-start; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.ga-logo img { height: 34px; width: auto; display: block; }
.ga-pitch { margin-top: auto; display: grid; gap: 12px; max-width: 460px; position: relative; z-index: 1; }
.ga-pitch h1 { margin: 0; color: #fff; font-size: 34px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.ga-pitch h1 b { color: var(--a-gold); font-weight: 800; }
.ga-pitch p { margin: 0; color: #B9CCEA; font-size: 16px; max-width: 420px; }
.ga-chan { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.ga-chan span { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.ga-chan svg { width: 22px; height: 22px; }
.ga-points { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; position: relative; z-index: 1; margin-bottom: auto; max-width: 460px; }
.ga-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: #CFE0F8; }
.ga-points i { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; background: rgba(91,155,234,.16); color: #8DB8F2; }
.ga-points li:nth-child(2) i { background: rgba(0,168,108,.16); color: #4FD1A1; }
.ga-points li:nth-child(3) i { background: rgba(255,189,89,.16); color: var(--a-gold); }
.ga-points b { display: block; color: #fff; font-weight: 700; }
.ga-side small { color: #8FA8CF; font-size: 12.5px; position: relative; z-index: 1; }

/* the form side */
.ga-main { display: flex; flex-direction: column; min-width: 0; padding: 20px 32px 28px; }
.ga-top { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 40px; }
.ga-top .ga-logo { display: none; }
.ga-lang { display: inline-flex; border: 1px solid var(--a-line); border-radius: 99px; padding: 3px; background: var(--a-card); }
.ga-lang button { font: inherit; font-size: 13px; font-weight: 700; border: 0; background: none; color: var(--a-ink-3); border-radius: 99px; padding: 4px 12px; cursor: pointer; }
.ga-lang button.on { background: var(--a-blue-soft); color: var(--a-blue); }
.ga-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px 0; }
.ga-box { width: 100%; max-width: 460px; }
.ga-box.wide { max-width: 580px; }
.ga-foot { text-align: center; font-size: 12.5px; color: var(--a-ink-3); display: flex; gap: 6px 14px; justify-content: center; flex-wrap: wrap; }
.ga-foot a { color: var(--a-ink-3); }

/* headings, alerts, fields, buttons */
.ga-h { display: grid; gap: 4px; margin-bottom: 20px; }
.ga-h h2 { margin: 0; color: var(--a-ink); font-size: 26px; font-weight: 800; line-height: 1.3; }
.ga-h p { margin: 0; color: var(--a-ink-3); }
.ga-alert { border-radius: 13px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; display: flex; gap: 8px; align-items: flex-start; }
.ga-alert i { font-size: 18px; flex: none; margin-top: 2px; }
.ga-alert.bad { background: var(--a-bad-soft); color: var(--a-bad); }
.ga-alert.ok { background: var(--a-ok-soft); color: var(--a-ok); }
.ga-alert p { margin: 0; }
.ga-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.ga-grid .full { grid-column: 1 / -1; }
.ga-f { display: grid; gap: 6px; min-width: 0; }
.ga-f label { margin: 0; font-size: 13px; font-weight: 700; color: var(--a-ink-2); display: flex; justify-content: space-between; gap: 8px; }
.ga-f label em { color: var(--a-bad); font-style: normal; }
.ga-f label a { font-weight: 600; }
.ga-in { position: relative; display: flex; align-items: center; }
.ga-in > i.ph { position: absolute; inset-inline-start: 13px; color: var(--a-ink-3); font-size: 18px; pointer-events: none; }
.ga-in input, .ga-in select, .ga-input { width: 100%; height: 46px; border: 1px solid var(--a-line); background: var(--a-field); color: var(--a-ink); border-radius: 13px; padding: 0 14px; font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s, background .15s; }
.ga-in > i.ph + input { padding-inline-start: 40px; }
.ga-in input:focus, .ga-in select:focus, .ga-input:focus { outline: 0; border-color: var(--a-blue); background: var(--a-card); box-shadow: 0 0 0 4px rgba(10,102,214,.14); }
.ga-in input::placeholder { color: var(--a-ink-3); opacity: .8; }
.ga-eye { position: absolute; inset-inline-end: 6px; width: 36px; height: 36px; border: 0; background: none; color: var(--a-ink-3); border-radius: 10px; cursor: pointer; display: grid; place-items: center; font-size: 18px; }
.ga-eye:hover { background: var(--a-blue-soft); color: var(--a-blue); }
.ga-in input[type="password"], .ga-in input.has-eye { padding-inline-end: 46px; }
.ga-phone { display: flex; gap: 8px; direction: ltr; }
.ga-phone select { flex: 0 0 116px; }
.ga-captcha { display: flex; gap: 8px; align-items: center; }
.ga-captcha span { flex: none; height: 46px; display: grid; place-items: center; padding: 0 14px; border-radius: 13px; background: var(--a-blue-soft); color: var(--a-blue); font: 700 15px 'Outfit', sans-serif; direction: ltr; }
.ga-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--a-ink-2); cursor: pointer; margin: 0; }
.ga-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--a-blue); flex: none; }
.ga-btn { width: 100%; height: 48px; border: 0; border-radius: 99px; background: linear-gradient(120deg, #0A66D6, #0852AD); color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 8px 20px rgba(10,102,214,.25); transition: transform .15s, box-shadow .15s; }
.ga-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(10,102,214,.32); }
.ga-btn:focus-visible { outline: 3px solid var(--a-gold); outline-offset: 2px; }
.ga-or { display: flex; align-items: center; gap: 12px; color: var(--a-ink-3); font-size: 13px; margin: 18px 0 14px; }
.ga-or::before, .ga-or::after { content: ""; flex: 1; height: 1px; background: var(--a-line); }
.ga-social { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ga-social:empty { display: none; }
.ga-social > * { min-width: 0; }
.ga-social a, .ga-social .btn { width: 100% !important; height: 46px; border-radius: 13px !important; border: 1px solid var(--a-line) !important; background: var(--a-card) !important; color: var(--a-ink) !important; display: flex !important; align-items: center; justify-content: center; gap: 8px; font: inherit !important; font-size: 14px !important; font-weight: 700 !important; box-shadow: none !important; padding: 0 10px !important; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ga-social a:hover, .ga-social .btn:hover { border-color: var(--a-blue) !important; }
.ga-social img, .ga-social i { max-height: 20px; }
.ga-switch { text-align: center; margin-top: 18px; color: var(--a-ink-3); font-size: 14.5px; }
.ga-switch a { font-weight: 800; }

/* older bodies in this frame (forgot password, recovery, activation, change password) */
.ga-box .container, .ga-box .container-fluid { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
.ga-box .row { margin: 0; }
.ga-box .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; margin: 0 !important; padding: 0; }
.ga-box .login-brand { display: none; }
.ga-box .card { background: var(--a-card); border: 1px solid var(--a-line); border-radius: 20px; box-shadow: var(--a-shadow); color: var(--a-ink-2); margin: 0; }
.ga-box .card-header { background: none; border: 0; padding: 22px 24px 0; min-height: 0; }
.ga-box .card-header h4 { color: var(--a-ink); font-size: 20px; font-weight: 800; margin: 0; display: flex; gap: 8px; align-items: center; }
.ga-box .card-body { padding: 18px 24px 24px; }
.ga-box .form-control { height: 46px; border: 1px solid var(--a-line); background: var(--a-field); color: var(--a-ink); border-radius: 13px; font: inherit; }
.ga-box .form-control:focus { border-color: var(--a-blue); background: var(--a-card); box-shadow: 0 0 0 4px rgba(10,102,214,.14); }
.ga-box label { color: var(--a-ink-2); font-weight: 700; font-size: 13px; }
.ga-box .btn-primary { background: linear-gradient(120deg, #0A66D6, #0852AD); border: 0; border-radius: 99px; height: 48px; font-weight: 800; box-shadow: 0 8px 20px rgba(10,102,214,.25); }
.ga-box .alert { border-radius: 13px; border: 0; }
.ga-box .alert-danger { background: var(--a-bad-soft); color: var(--a-bad); }
.ga-box .alert-success { background: var(--a-ok-soft); color: var(--a-ok); }
.ga-box .text-muted { color: var(--a-ink-3) !important; }

/* phones and narrow windows: the brand panel becomes a slim bar, the form takes the screen */
@media (max-width: 960px) {
  .ga { grid-template-columns: minmax(0, 1fr); }
  .ga-side { display: none; }
  .ga-main { padding: 0 16px 20px; }
  .ga-top { justify-content: space-between; margin: 0 -16px; padding: 12px 16px; background: linear-gradient(120deg, #162D4D, #0E2140); }
  .ga-top .ga-logo { display: inline-flex; padding: 6px 12px; border-radius: 12px; box-shadow: none; }
  .ga-top .ga-logo img { height: 26px; }
  .ga-top .ga-lang { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
  .ga-top .ga-lang button { color: #CFE0F8; }
  .ga-top .ga-lang button.on { background: #fff; color: #0852AD; }
  .ga-body { align-items: flex-start; padding: 22px 0 10px; }
}
@media (max-width: 560px) {
  .ga-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ga-h h2 { font-size: 23px; }
  .ga-h { margin-bottom: 16px; }
  .ga-social { grid-template-columns: minmax(0, 1fr); }
  .ga-phone select { flex-basis: 104px; }
}
@media (prefers-reduced-motion: reduce) { .ga-btn { transition: none; } .ga-btn:hover { transform: none; } }

/* the Google / Facebook buttons come from their libraries as bootstrap-social links: icon inline, not boxed */
.ga-social .btn-social > :first-child { position: static !important; width: auto !important; height: auto !important; border: 0 !important; line-height: 1 !important; font-size: 19px !important; margin: 0 !important; }
.ga-social .btn-social img { width: 20px; height: 20px; object-fit: contain; }
.ga-social .btn-facebook > :first-child { color: #0866FF; }
.ga-check { justify-content: flex-start !important; }
.ga-captcha span { unicode-bidi: isolate; }

/* older bodies: secondary buttons as navy outline pills, side by side with the main button */
.ga-box .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 99px; height: 48px; padding: 0 22px; font-weight: 800; font-size: 15px; }
.ga-box .btn-secondary, .ga-box .btn-light, .ga-box .btn-default, .ga-box .btn-outline-secondary { background: transparent !important; border: 1px solid var(--a-line-2) !important; color: var(--a-ink-2) !important; box-shadow: none !important; }
.ga-box .btn-secondary:hover, .ga-box .btn-light:hover, .ga-box .btn-default:hover { border-color: var(--a-blue) !important; color: var(--a-blue) !important; }
.ga-box .form-group:last-child { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 0; }
.ga-box .form-group:last-child .float-right, .ga-box .form-group:last-child .float-left { float: none !important; margin-inline-start: auto; }
.ga-box .alert-light { background: var(--a-blue-soft); color: var(--a-ink-2); }
.ga-box .alert-warning { background: #FFF9E5; color: #8A5A00; border: 0; }

/* the light / dark switch (same look as the app's top bar) */
.ga-top { gap: 10px; }
.g-theme-toggle { position: relative; width: 62px; height: 32px; flex: none; border-radius: 99px; border: 1px solid var(--a-line); background: var(--a-card); cursor: pointer; display: inline-flex; align-items: center; justify-content: space-between; direction: ltr; padding: 0 8px; transition: background .25s, border-color .25s; }
.g-theme-toggle i { font-size: 15px; position: relative; z-index: 1; }
.g-theme-toggle .ph-sun { color: #E08A00; } .g-theme-toggle .ph-moon { color: #93A9CB; }
.g-theme-toggle .knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(22,45,77,.25); transition: transform .25s cubic-bezier(.22,1,.36,1), background .25s; }
.g-theme-toggle[aria-checked="true"] { background: #0F1B30; border-color: #2F4670; }
.g-theme-toggle[aria-checked="true"] .knob { transform: translateX(30px); background: #1B3357; box-shadow: 0 0 0 1px #3E5A8A; }
.g-theme-toggle[aria-checked="true"] .ph-moon { color: #FFD98A; } .g-theme-toggle[aria-checked="true"] .ph-sun { color: #5A7397; }
.g-theme-toggle:focus-visible { outline: 2px solid var(--a-gold); outline-offset: 2px; }
@media (max-width: 960px) { .ga-top .g-theme-toggle { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); } .ga-top .ga-right { display: flex; gap: 8px; align-items: center; } }
.ga-right { display: flex; gap: 10px; align-items: center; }
