/* Sign-in pages (B22, Oct 2026; design/sign-in/sign-in-final.html, layout "B · Tabs", scene "Gather").
   body.g2-auth = the frame _Layout draws for Login, VerifyNumber, Register, ForgotPassword and ResetPassword:
   .g2a-page = [.g2a-scene | .g2a-side]. .g2a = the form look without the frame (ChangePassword, Games2All).
   Spacing scale only: 4 8 12 16 24 32 48 64. Logical properties, so Arabic mirrors itself. */

body.g2-auth,
.g2a,
.g2a-form {
    --g2a-bg: #08090b;
    --g2a-surface: #0d0f12;
    --g2a-raised: #121519;
    --g2a-line: #1f232a;
    --g2a-line2: #2a2f37;
    --g2a-text: #f1f2f4;
    --g2a-body: #c4c9cf;
    --g2a-muted: #8e959d;
    --g2a-dim: #626973;
    --g2a-lime: #bcd767;
    --g2a-on-lime: #14200a;
    --g2a-error: #ff8a7a;
    --g2a-ok: #b3d97a;
    --g2a-ease: cubic-bezier(.22, .7, .18, 1);
    --g2a-radius: 14px;
}

/* ---------- the frame ---------- */

html:has(body.g2-auth) { background: #08090b; }
body.g2-auth {
    background: var(--g2a-bg) !important;
    color: var(--g2a-body);
    color-scheme: dark;
    -webkit-font-smoothing: antialiased;
}
body.g2-auth::before,
body.g2-auth .snow { display: none !important; }
body.g2-auth .site-wrapper { background: none; min-height: 0; overflow: visible; }

/* Round 4: the store's sign-in pages have their own layout (_AuthLayout: no Bootstrap, no theme CSS), so the base comes
   from here. The admin sign-in (login.css, loaded after this file) sets the same base with its own font. */
body.g2-auth {
    margin: 0;
    font-family: "Poppins", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}
html[lang="ar"] body.g2-auth { font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif; }
body.g2-auth *,
body.g2-auth *::before,
body.g2-auth *::after { box-sizing: border-box; }
body.g2-auth button,
body.g2-auth input { font-family: inherit; }
body.g2-auth a { color: inherit; }
body.g2-auth .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* The page-wide loading layer (#myLoadingOverlay; pages show it with style.display = "flex"). */
body.g2-auth #myLoadingOverlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    background: rgba(8, 9, 11, .72);
    backdrop-filter: blur(4px);
}
body.g2-auth .myLoadingOverlay_spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #2a2f37;
    border-top-color: #bcd767;
    animation: g2a-spin .8s linear infinite;
}
@keyframes g2a-spin { to { transform: rotate(360deg); } }

.g2a-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100svh;
}

/* The scene: one soft lime beam, fine dust on the canvas, the "2" the dust gathers into, the quote. */
.g2a-scene {
    --g2a-level: 0;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px 48px;
    background: radial-gradient(120% 90% at 30% 20%, #12161a 0%, var(--g2a-bg) 60%);
}
.g2a-scene[data-step="1"] { --g2a-level: 1; }
.g2a-scene[data-step="2"] { --g2a-level: 2; }
.g2a-scene[data-step="3"] { --g2a-level: 3; }
.g2a-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 70%, rgba(8, 9, 11, .9));
}
html[dir="rtl"] .g2a-scene::after { background: linear-gradient(270deg, transparent 70%, rgba(8, 9, 11, .9)); }

.g2a-beam {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: var(--g2a-beam, linear-gradient(118deg, transparent 18%, rgba(188, 215, 103, .10) 34%, rgba(255, 255, 255, .065) 44%, transparent 60%));
    opacity: 0;
    animation: g2a-beam-in .4s ease forwards;
}
/* Each step forward brightens the light a little. */
@keyframes g2a-beam-in { to { opacity: calc(.85 + var(--g2a-level) * .1); } }
.g2a-scene[data-step] .g2a-beam { transition: opacity 1.2s; }

.g2a-dust {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.g2a-brandline,
.g2a-quote { position: relative; z-index: 3; }
.g2a-brandline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.g2a-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--g2a-text) !important;
    font-weight: 500;
    letter-spacing: .02em;
    text-decoration: none !important;
}
.g2a-brand img { width: 32px; height: 32px; border-radius: 8px; }
.g2a-mback {
    display: none;
    align-items: center;
    gap: 6px;
    color: var(--g2a-muted) !important;
    font-size: 13px;
    text-decoration: none !important;
}
.g2a-mback svg { width: 16px; height: 16px; }
.g2a-stage { position: relative; z-index: 1; flex: 1; min-height: 200px; }

/* "Touch the 2" (opt-in: data-g2a-touch, the admin sign-in; the store's scenes never have it). Touches on the stage
   (where the 2 sits) move the dust instead of scrolling; the page still scrolls everywhere else. */
.g2a-scene[data-g2a-touch] .g2a-stage { touch-action: none; }
/* The store's scene (it carries the hint text): a finger that starts on the 2 still scrolls the page; a tap bursts it. */
.g2a-scene[data-g2a-touch-hint] .g2a-stage { touch-action: pan-y; }
.g2a-touch-hint {
    position: absolute;
    z-index: 3;
    transform: translateX(-50%);
    font-size: 11px;
    letter-spacing: .28em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--g2a-dim);
    pointer-events: none;
    opacity: 0;
    transition: opacity .8s var(--g2a-ease);
}
.g2a-touch-hint.is-shown { opacity: 1; }
.g2a-touch-hint.is-gone { opacity: 0; }
@media (max-width: 900px) {
    .g2a-touch-hint { display: none; }
}

.g2a-quote {
    display: grid;
    gap: 12px;
    max-width: 30ch;
    opacity: 0;
    transform: translateY(12px);
    animation: g2a-quote-in .4s var(--g2a-ease) forwards;
}
@keyframes g2a-quote-in { to { opacity: 1; transform: none; } }
.g2a-quote__kick {
    font-size: 11px;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--g2a-lime);
    font-weight: 500;
}
.g2a-quote__title {
    margin: 0;
    color: var(--g2a-text);
    font-weight: 200;
    font-size: clamp(28px, 2.8vw, 40px);
    line-height: 1.15;
    letter-spacing: -.01em;
    text-wrap: balance;
}
.g2a-quote__title em { font-style: normal; font-weight: 500; }
.g2a-quote__text { margin: 0; color: var(--g2a-muted); font-size: 14px; font-weight: 300; }

/* The form column: top bar, the page, footer line. */
.g2a-side {
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding-inline: 48px;
    background: var(--g2a-bg);
    min-width: 0;
}
.g2a-bar { display: flex; justify-content: space-between; align-items: center; padding-block: 24px; }
.g2a-quiet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--g2a-muted) !important;
    font-size: 13px;
    font-weight: 300;
    text-decoration: none !important;
    transition: color .25s;
}
.g2a-quiet:hover { color: var(--g2a-text) !important; }
.g2a-quiet svg { width: 16px; height: 16px; }
.g2a-quiet b { color: var(--g2a-text); font-weight: 500; }
html[dir="rtl"] .g2a-quiet svg,
html[dir="rtl"] .g2a-mback svg { transform: scaleX(-1); }
.g2a-num { direction: ltr; unicode-bidi: isolate; }

.g2a-mid {
    display: grid;
    align-content: center;
    gap: 16px;
    padding-block: 32px;
    min-width: 0;
}
.g2a-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding-block: 24px;
    border-top: 1px solid var(--g2a-line);
    font-size: 12px;
    font-weight: 300;
}
.g2a-foot a { color: var(--g2a-dim) !important; text-decoration: none !important; }
.g2a-foot a:hover { color: var(--g2a-text) !important; }

/* TempData messages (MessageViewComponent markup) on the form's width. */
.g2a-messages { width: 100%; max-width: 380px; margin-inline: auto; }
.g2a-messages:empty { display: none; }
.g2a-messages .site-content,
.g2a-messages .container,
.g2a-messages .row,
.g2a-messages .col-12 { margin: 0 !important; padding: 0 !important; max-width: none; background: none; }
.g2a-messages .alert {
    display: block;
    margin: 0 !important;
    padding: 12px 16px;
    border-radius: var(--g2a-radius);
    border: 1px solid rgba(244, 182, 61, .35);
    background: rgba(244, 182, 61, .08);
    color: var(--g2a-text) !important;
    font-size: 13.5px;
    line-height: 1.5;
    text-align: start;
}
.g2a-messages .alert .highlight { color: #f4b63d !important; font-weight: 600; }
.g2a-messages .alert .highlight:empty { display: none; }
.g2a-messages .alert-danger { border-color: rgba(255, 138, 122, .4); background: rgba(255, 138, 122, .08); }
.g2a-messages .alert-danger .highlight { color: var(--g2a-error) !important; }
.g2a-messages .alert-success { border-color: rgba(179, 217, 122, .4); background: rgba(179, 217, 122, .08); }
.g2a-messages .alert-success .highlight { color: var(--g2a-ok) !important; }
.g2a-messages .alert-info { border-color: rgba(61, 123, 255, .35); background: rgba(61, 123, 255, .08); }
.g2a-messages .alert-info .highlight { color: #8fb2ff !important; }

/* ---------- the form (frame and .g2a) ---------- */

.g2a-form {
    width: 100%;
    max-width: 380px;
    margin-inline: auto;
    display: grid;
    gap: 32px;
}
.g2a-form > * { animation: g2a-rise .6s var(--g2a-ease) both; }
.g2a-form > :nth-child(2) { animation-delay: .07s; }
.g2a-form > :nth-child(3) { animation-delay: .14s; }
.g2a-form > :nth-child(4) { animation-delay: .21s; }
@keyframes g2a-rise { from { opacity: 0; transform: translateY(10px); } }

.g2-auth h1, .g2-auth h2, .g2-auth label, .g2-auth button, .g2-auth .btn,
.g2a-form h1, .g2a-form h2, .g2a-form label, .g2a-form button, .g2a-dialog h2 { text-transform: none !important; }

.g2a-head { display: grid; gap: 12px; }
.g2a-head h1,
.g2a-head .g2a-head__title {
    margin: 0;
    color: var(--g2a-text);
    font-weight: 300;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -.02em;
    text-wrap: balance;
}
.g2a-head p { margin: 0; color: var(--g2a-muted); font-size: 14.5px; font-weight: 300; }
.g2a-head p b { color: var(--g2a-text); font-weight: 500; direction: ltr; unicode-bidi: isolate; }

.g2a-body { display: grid; gap: 24px; margin: 0; }
.g2a-body[hidden], .g2a-state[hidden] { display: none !important; }
.g2a-state { display: grid; gap: 32px; }
.g2a-fields { display: grid; gap: 16px; }

/* Tabs: Sign in | Create account (links). */
.g2a-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    border-radius: var(--g2a-radius);
    background: var(--g2a-surface);
    border: 1px solid var(--g2a-line);
}
.g2a-tabs a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 10px;
    color: var(--g2a-muted) !important;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none !important;
    transition: background .25s, color .25s;
}
.g2a-tabs a:hover { color: var(--g2a-text) !important; }
.g2a-tabs a[aria-current="page"] { background: #1a1e23; color: var(--g2a-text) !important; box-shadow: inset 0 0 0 1px var(--g2a-line2); }

/* 58px field with a floating label. */
.g2a-field {
    position: relative;
    display: flex;
    align-items: stretch;
    height: 58px;
    border-radius: var(--g2a-radius);
    background: var(--g2a-surface);
    border: 1px solid var(--g2a-line);
    transition: border-color .3s var(--g2a-ease), background .3s;
}
.g2a-field:hover { border-color: #2f353e; }
.g2a-field:focus-within { border-color: rgba(188, 215, 103, .55); background: #0f1214; }
.g2a-field.is-invalid { border-color: rgba(255, 138, 122, .6); }
.g2a-field--readonly { background: transparent; }
.g2a-field__wrap { position: relative; flex: 1; min-width: 0; }
.g2a-field input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    padding: 22px 16px 6px !important;
    color: var(--g2a-text) !important;
    font-size: 16px !important;
    font-weight: 400;
    text-transform: none !important;
}
.g2a-field input::placeholder { color: transparent !important; }
.g2a-field input:-webkit-autofill {
    -webkit-text-fill-color: var(--g2a-text);
    -webkit-box-shadow: 0 0 0 40px var(--g2a-surface) inset !important;
    caret-color: var(--g2a-text);
}
.g2a-field input[readonly] { color: var(--g2a-muted) !important; }
.g2a-field label {
    position: absolute;
    inset-inline-start: 16px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    color: var(--g2a-dim) !important;
    font-size: 15px;
    font-weight: 300;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 32px);
    transition: top .25s var(--g2a-ease), font-size .25s var(--g2a-ease), color .25s;
}
.g2a-field input:focus + label,
.g2a-field input:not(:placeholder-shown) + label,
.g2a-field input:-webkit-autofill + label {
    top: 15px;
    font-size: 11px;
    letter-spacing: .06em !important;
    color: var(--g2a-muted) !important;
}

/* Country code button inside a field (numbers), mail icon (emails), show / hide. */
.g2a-lead {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-inline: 16px 12px;
    border: 0;
    background: none;
    color: var(--g2a-text);
    cursor: pointer;
    direction: ltr;
    font-size: 15px;
}
.g2a-lead::after {
    content: "";
    position: absolute;
    inset-inline-end: 0;
    top: 16px;
    bottom: 16px;
    width: 1px;
    background: var(--g2a-line2);
}
.g2a-lead img { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; }
.g2a-lead svg { width: 11px; height: 11px; color: var(--g2a-dim); }
.g2a-lead[hidden], .g2a-kind[hidden] { display: none !important; }
.g2a-kind { display: flex; align-items: center; padding-inline: 16px; color: var(--g2a-dim); }
.g2a-kind svg { width: 18px; height: 18px; }
.g2a-eye { border: 0; background: none; padding-inline: 16px; color: var(--g2a-dim); cursor: pointer; }
.g2a-eye:hover, .g2a-eye[aria-pressed="true"] { color: var(--g2a-text); }
.g2a-eye svg { width: 18px; height: 18px; }

.g2a-aside { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.g2a-link {
    color: var(--g2a-lime) !important;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
}
.g2a-link:hover { text-decoration: underline !important; text-underline-offset: 4px; }
.g2a-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--g2a-body) !important;
    font-size: 13px;
    font-weight: 300;
    cursor: pointer;
}
.g2a-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--g2a-lime); }
.g2a-hint { margin: 0; font-size: 12.5px; color: var(--g2a-dim); font-weight: 300; }
.g2a-error { margin: 0; font-size: 13px; color: var(--g2a-error); }
.g2a-error[hidden] { display: none; }
.g2a-small { margin: 0; font-size: 12.5px; color: var(--g2a-dim); font-weight: 300; text-align: center; }

/* 56px primary button; the fill bar runs while it is busy. */
.g2a-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: var(--g2a-radius);
    cursor: pointer;
    background: var(--g2a-lime);
    color: var(--g2a-on-lime) !important;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .02em;
    overflow: hidden;
    transition: transform .2s var(--g2a-ease), box-shadow .4s var(--g2a-ease);
}
.g2a-btn:hover { box-shadow: 0 12px 40px -14px rgba(188, 215, 103, .6); }
.g2a-btn:active { transform: scale(.99); }
.g2a-btn__label { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; }
.g2a-btn__label svg { width: 16px; height: 16px; transition: transform .3s var(--g2a-ease); }
.g2a-btn:hover .g2a-btn__label svg { transform: translateX(3px); }
html[dir="rtl"] .g2a-btn__label svg { transform: scaleX(-1); }
html[dir="rtl"] .g2a-btn:hover .g2a-btn__label svg { transform: scaleX(-1) translateX(3px); }
.g2a-btn__bar {
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: var(--g2a-on-lime);
    opacity: .35;
}
.g2a-btn.is-busy { cursor: progress; }
.g2a-btn.is-busy .g2a-btn__bar { animation: g2a-fill 1.6s var(--g2a-ease) forwards; }
@keyframes g2a-fill { to { width: 100%; } }
.g2a-btn[disabled]:not(.is-busy) { background: #1c2117; color: #8a9168 !important; box-shadow: none; cursor: default; }
.g2a-btn[disabled].is-busy { opacity: 1; }

/* The other way in: a soft line with an icon. */
.g2a-alt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 4px 0;
    color: var(--g2a-body) !important;
    font-size: 13.5px;
    text-decoration: none !important;
}
.g2a-alt svg { width: 16px; height: 16px; color: var(--g2a-lime); }
.g2a-alt:hover span { color: var(--g2a-text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--g2a-line2); }

/* The verified number on Register. */
.g2a-who {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--g2a-line);
    border-radius: var(--g2a-radius);
    font-size: 13.5px;
    color: var(--g2a-muted);
}
.g2a-who b { color: var(--g2a-text); font-weight: 500; direction: ltr; unicode-bidi: isolate; }
.g2a-who__ok { color: var(--g2a-ok); font-size: 12px; }

/* Password rule chips. */
.g2a-rules { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--g2a-dim); font-weight: 300; }
.g2a-rules li { display: inline-flex; align-items: center; gap: 6px; transition: color .3s; }
.g2a-rules li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .6; }
.g2a-rules li.is-on { color: var(--g2a-ok); }

/* The SMS code: 3 + 3 boxes. */
.g2a-otp {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 16px repeat(3, minmax(0, 1fr));
    gap: 8px;
    direction: ltr;
    align-items: center;
}
.g2a-otp__dash { height: 1px; background: var(--g2a-line2); }
.g2a-otp input {
    height: 64px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 !important;
    text-align: center;
    font-size: 26px !important;
    font-weight: 300;
    color: var(--g2a-text) !important;
    background: var(--g2a-surface) !important;
    border: 1px solid var(--g2a-line) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    outline: 0;
    caret-color: var(--g2a-lime);
    font-variant-numeric: tabular-nums;
    transition: border-color .3s var(--g2a-ease), transform .3s var(--g2a-ease);
}
.g2a-otp input:focus { border-color: rgba(188, 215, 103, .6) !important; }
.g2a-otp input.is-typed { animation: g2a-pop .3s var(--g2a-ease); }
@keyframes g2a-pop { 40% { transform: translateY(-3px); } }
.g2a-otp.is-good input { border-color: var(--g2a-lime) !important; color: var(--g2a-lime) !important; }
.g2a-otp.is-bad input { border-color: var(--g2a-error) !important; animation: g2a-shake .3s; }
@keyframes g2a-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.g2a-otp.is-checking { opacity: .6; pointer-events: none; }
.g2a-otp input:disabled { opacity: .45; cursor: not-allowed; }

.g2a-timer { display: flex; align-items: center; gap: 12px; min-height: 20px; font-size: 13px; color: var(--g2a-muted); font-weight: 300; font-variant-numeric: tabular-nums; }
.g2a-timer__track { flex: 1; height: 1px; background: var(--g2a-line2); position: relative; }
.g2a-timer__track i { position: absolute; inset: 0; background: var(--g2a-lime); transform-origin: left; transform: scaleX(var(--g2a-left, 1)); transition: transform 1s linear; }
html[dir="rtl"] .g2a-timer__track i { transform-origin: right; }
.g2a-timer[hidden] { display: none; }

/* Country picker: a native dialog with search. */
.g2a-dialog {
    border: 1px solid #2a2f37;
    border-radius: 18px;
    background: #121519;
    color: #c4c9cf;
    padding: 0;
    width: min(380px, calc(100% - 32px));
    max-height: min(560px, calc(100% - 64px));
}
.g2a-dialog::backdrop { background: rgba(4, 5, 6, .75); backdrop-filter: blur(8px); }
.g2a-dialog__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid #1f232a; }
.g2a-dialog__head h2 { margin: 0; color: #f1f2f4; font-size: 15px !important; font-weight: 500; }
.g2a-dialog__close { border: 0; background: #0d0f12; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; color: #8e959d; }
.g2a-dialog__body { display: grid; gap: 12px; padding: 16px 24px 24px; }
.g2a-dialog__body input[type="search"] {
    height: 44px;
    border-radius: 12px !important;
    border: 1px solid #2a2f37 !important;
    background: #0d0f12 !important;
    padding: 0 16px !important;
    outline: 0;
    color: #f1f2f4 !important;
    font-size: 16px;
    box-shadow: none !important;
}
.g2a-countries {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 320px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #2e333b transparent;
}
.g2a-countries li[hidden] { display: none; }
.g2a-countries button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    background: none;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    color: #c4c9cf;
    font-weight: 300;
    text-align: start;
}
.g2a-countries button:hover,
.g2a-countries button:focus-visible,
.g2a-countries button[aria-current="true"] { background: #0d0f12; color: #f1f2f4; }
.g2a-countries img { width: 20px; height: 14px; border-radius: 2px; flex: none; }
.g2a-countries span { flex: 1; }
.g2a-countries .g2a-countries__dial { flex: none; color: #8e959d; direction: ltr; }

.g2a-form :focus-visible,
.g2a-dialog :focus-visible,
.g2-auth :focus-visible { outline: 1.5px solid #bcd767; outline-offset: 3px; }
.g2a-field :focus-visible, .g2a-otp input:focus-visible { outline: 0; }

/* The account page (ChangePassword): the same form in the account column, no scene. */
.g2a--inline .g2a-form { max-width: 440px; margin-inline: 0; gap: 24px; }
.g2a--inline .g2a-head h1 { font-size: 24px; }

/* The reCAPTCHA line under the form (pages that load reCAPTCHA); Google's floating badge is hidden on these pages. */
.g2a-form > [data-g2a-recaptcha] { display: contents; }
.g2a-legal { margin: 0; font-size: 12px; line-height: 1.5; color: var(--g2a-dim); font-weight: 300; text-align: center; }
.g2a-legal a { color: var(--g2a-muted) !important; text-decoration: underline !important; text-decoration-color: var(--g2a-line2) !important; text-underline-offset: 3px; }
.g2a-legal a:hover { color: var(--g2a-text) !important; }
body.g2-auth .grecaptcha-badge,
body:has(.g2a-form) .grecaptcha-badge { visibility: hidden; }

/* ---------- page changes ---------- */

/* Cross-document view transitions between the sign-in pages (browsers without them just load the page): the whole page
   cross-fades, 180 ms out and 260 ms in; the scene's own entrance (beam, quote, the gather) plays on every page. */
@media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }
    ::view-transition-old(root) { animation: g2a-vt-out .18s cubic-bezier(.22, .7, .18, 1) both; }
    ::view-transition-new(root) { animation: g2a-vt-in .26s cubic-bezier(.22, .7, .18, 1) both; }
    @keyframes g2a-vt-out { to { opacity: 0; } }
    @keyframes g2a-vt-in { from { opacity: 0; } }
}

/* ---------- phones: one continuous scene, then the form on the same dark ---------- */

@media (max-width: 900px) {
    .g2a-page { grid-template-columns: 1fr; position: relative; min-height: 0; }
    .g2a-page::before {
        content: "";
        position: absolute;
        inset: 0 0 auto;
        height: min(100svh, 900px);
        z-index: 0;
        pointer-events: none;
        background: radial-gradient(120% 70% at 70% 0%, #13171b 0%, transparent 60%);
    }
    .g2a-scene { position: static; min-height: max(300px, 38svh); padding: 16px 24px 8px; gap: 0; background: none; overflow: visible; }
    .g2a-scene::after { display: none; }
    .g2a-beam,
    .g2a-dust {
        position: absolute;
        inset: 0 0 auto;
        height: min(100svh, 900px);
        -webkit-mask: linear-gradient(#000 45%, rgba(0, 0, 0, .35) 75%, transparent);
        mask: linear-gradient(#000 45%, rgba(0, 0, 0, .35) 75%, transparent);
    }
    .g2a-mback { display: inline-flex; }
    .g2a-stage { min-height: 160px; }
    .g2a-quote { gap: 8px; max-width: 20ch; }
    .g2a-quote__kick { font-size: 10.5px; }
    .g2a-quote__title { font-size: 26px; line-height: 1.12; }
    .g2a-quote__text { display: none; }
    .g2a-side { position: relative; z-index: 2; padding-inline: 24px; background: linear-gradient(transparent, var(--g2a-bg) 96px); }
    .g2a-bar { display: none; }
    .g2a-mid { align-content: start; padding-block: 16px 32px; }
    .g2a-form { gap: 24px; }
    .g2a-state { gap: 24px; }
    .g2a-head { gap: 8px; }
    .g2a-head h1, .g2a-head .g2a-head__title { font-size: 26px; }
    .g2a-head p { font-size: 14px; }
    body.g2-auth .g2a-foot { padding-bottom: 88px; }
}
/* Short phones: a smaller scene so the Sign in button stays on the first screen. */
@media (max-width: 900px) and (max-height: 720px) {
    .g2a-scene { min-height: 0; }
    .g2a-stage { min-height: 120px; }
    .g2a-quote__title { font-size: 22px; }
}
@media (max-width: 400px) {
    .g2a-side { padding-inline: 16px; }
    .g2a-scene { padding-inline: 16px; }
    .g2a-otp { gap: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)) 8px repeat(3, minmax(0, 1fr)); }
    .g2a-otp input { height: 54px; font-size: 22px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .g2a-page *, .g2a-page *::before, .g2a-page *::after,
    .g2a-form *, .g2a-form *::before, .g2a-form *::after { animation: none !important; transition: none !important; }
    .g2a-beam { opacity: calc(.85 + var(--g2a-level) * .1); }
    .g2a-quote { opacity: 1; transform: none; }
}
