/* =====================================================================
   auth-v2.css: /login and /register (21 Nov 2026)
   ---------------------------------------------------------------------
   Two-panel auth screen: navy brand panel + white form card.
   - Linked ONLY from user/auth/login.blade.php and register.blade.php.
   - Every rule is scoped under .gw-auth-page (or body:has(.gw-auth-page) for the
     select2 dropdown, which select2 appends to <body>), so the site-wide
     #loginModal and its shared partials are never touched.
   - Colours / font: gateway-theme.css tokens only.
   - JS hooks (ids, classes, names, d-none toggles) are not renamed; this file only
     styles them. Bootstrap's .d-none (!important) still wins everywhere.
   ===================================================================== */

.gw-auth-page {
    --gwa-radius: 28px;
    --gwa-field-radius: 12px;
    --gwa-border: rgba(var(--gw-navy-rgb), .15);
    --gwa-placeholder: rgba(var(--gw-slate-rgb), .6);
    --gwa-ring: 0 0 0 3px rgba(var(--gw-gold-rgb), .3);
    --gwa-ease: cubic-bezier(.2, .8, .2, 1);

    position: relative;
    padding: 48px 16px 72px;
    font-family: var(--gw-font);
    color: var(--gw-slate);
    background:
        radial-gradient(640px 420px at 88% -8%, rgba(var(--gw-gold-rgb), .12), transparent 62%),
        radial-gradient(520px 380px at -6% 105%, rgba(var(--gw-navy-light-rgb), .9), transparent 70%);
}

/* Page canvas stays navy behind the header and below a short page (was an inline style on both views). */
body:has(.gw-auth-page) { background-color: var(--gw-navy); }

/* The old page art needed an 869px banner; the auth screen sizes itself. */
.banner-image:has(> .gw-auth-page) { min-height: 0 !important; height: auto !important; }

/* ---------------------------------------------------------------------
   Shell
   --------------------------------------------------------------------- */
.gw-auth-page .gw-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    max-width: 1080px;
    margin: 0 auto;
    border: 1.5px solid transparent;
    border-radius: var(--gwa-radius);
    background:
        linear-gradient(var(--gw-white), var(--gw-white)) padding-box,
        var(--gw-gold-shine) border-box;
    box-shadow: 0 0 40px rgba(var(--gw-gold-rgb), .16), 0 32px 80px rgba(var(--gw-navy-rgb), .55);
    overflow: hidden;
    animation: gwa-rise .35s var(--gwa-ease) both;
}

/* ---------------------------------------------------------------------
   Brand panel (navy)
   --------------------------------------------------------------------- */
.gw-auth-page .gw-auth-brand {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 52px 48px 44px;
    color: var(--gw-white);
    background:
        radial-gradient(420px 320px at 100% 0%, rgba(var(--gw-gold-rgb), .14), transparent 65%),
        linear-gradient(160deg, var(--gw-navy-light) 0%, var(--gw-navy) 78%);
    overflow: hidden;
}
/* soft gold rings, decoration only */
.gw-auth-page .gw-auth-brand::before,
.gw-auth-page .gw-auth-brand::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    border: 1px solid rgba(var(--gw-gold-rgb), .22);
    pointer-events: none;
}
.gw-auth-page .gw-auth-brand::before { width: 420px; height: 420px; right: -190px; bottom: -200px; }
.gw-auth-page .gw-auth-brand::after { width: 260px; height: 260px; right: -110px; bottom: -120px; border-color: rgba(var(--gw-gold-rgb), .32); }

.gw-auth-page .gw-auth-logo {
    display: block;
    flex: 0 0 auto;
    align-self: flex-start;   /* the panel is a flex column: without this the img stretched to full panel width */
    width: auto !important;
    max-width: none;
    height: 72px !important;
    object-fit: contain;
}

.gw-auth-page .gw-auth-promise {
    margin: 0 0 26px;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--gw-white);
    -webkit-text-fill-color: var(--gw-white);
    text-wrap: balance;
}
.gw-auth-page .gw-auth-gold {
    color: var(--gw-gold);
    -webkit-text-fill-color: var(--gw-gold);
}

/* Copy sits in the vertical middle of the panel (auto margins), so a tall register card leaves no empty block */
.gw-auth-page .gw-auth-brand-copy { margin-block: auto; }

.gw-auth-page .gw-auth-ticks {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.gw-auth-page .gw-auth-ticks li {
    position: relative;
    padding-left: 36px;
    font-size: 15px;
    font-weight: 500;
    line-height: 24px;
    color: var(--gw-white);
}
/* gold disc + navy check, drawn in CSS so it follows the theme */
.gw-auth-page .gw-auth-ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gw-gold-shine);
    box-shadow: 0 2px 10px rgba(var(--gw-gold-rgb), .35);
}
.gw-auth-page .gw-auth-ticks li::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 6px;
    width: 6px;
    height: 11px;
    border: solid var(--gw-navy);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.gw-auth-page .gw-auth-help {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 0;
    padding: 0 18px;
    border: 1px solid rgba(var(--gw-ice-rgb), .3);
    border-radius: 999px;
    background: rgba(var(--gw-navy-rgb), .35);
    color: var(--gw-white);
    font-family: var(--gw-font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.gw-auth-page .gw-auth-help:hover {
    border-color: var(--gw-gold);
    color: var(--gw-gold);
    background: rgba(var(--gw-navy-rgb), .6);
}
.gw-auth-page .gw-auth-help:focus-visible {
    outline: 3px solid var(--gw-gold);
    outline-offset: 3px;
}

/* ---------------------------------------------------------------------
   Form card (white)
   --------------------------------------------------------------------- */
.gw-auth-page .gw-auth-card {
    padding: 44px 52px 40px;
    background: var(--gw-white);
    color: var(--gw-slate);
}

/* Step indicator */
.gw-auth-page .gw-auth-steps {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}
.gw-auth-page .gw-auth-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gw-slate);
}
.gw-auth-page .gw-auth-step + .gw-auth-step::before {
    content: "";
    width: 32px;
    height: 2px;
    margin-right: 2px;
    border-radius: 2px;
    background: var(--gwa-border);
    transition: background-color .25s ease;
}
.gw-auth-page .gw-auth-step-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--gwa-border);
    background: var(--gw-ice);
    color: var(--gw-navy);
    font-size: 12px;
    font-weight: 700;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.gw-auth-page .gw-auth-step.is-current { color: var(--gw-navy); font-weight: 600; }
.gw-auth-page .gw-auth-step.is-current .gw-auth-step-dot {
    border-color: var(--gw-gold);
    background: var(--gw-gold-shine);
    box-shadow: 0 3px 10px rgba(var(--gw-gold-rgb), .4);
}
.gw-auth-page .gw-auth-step.is-done .gw-auth-step-dot {
    border-color: var(--gw-navy);
    background: var(--gw-navy);
    color: var(--gw-white);
}
.gw-auth-page .gw-auth-step.is-done + .gw-auth-step::before { background: var(--gw-gold); }

.gw-auth-page .gw-auth-title {
    margin: 0 0 8px;
    padding: 0;
    font-family: var(--gw-font);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    text-align: left;
    text-transform: none;
    background: none;
    color: var(--gw-navy);
    -webkit-text-fill-color: var(--gw-navy);
}
.gw-auth-page .gw-auth-sub {
    margin: 0 0 26px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--gw-slate);
    -webkit-text-fill-color: var(--gw-slate);
}

.gw-auth-page .gw-auth-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: -10px 0 20px;
    padding: 6px 12px;
    border: 1px solid rgba(var(--gw-gold-dark-rgb), .25);
    border-radius: 999px;
    background: rgba(var(--gw-gold-rgb), .16);
    color: var(--gw-navy);
    font-size: 13px;
}
.gw-auth-page .gw-auth-chip strong { font-weight: 700; }

/* Step-only blocks follow data-step (set from the OTP field's visibility) */
.gw-auth-page .gw-auth-card[data-step="1"] .gw-step2-only,
.gw-auth-page .gw-auth-card[data-step="2"] .gw-step1-only { display: none !important; }
.gw-auth-page .gw-auth-card[data-step="2"] .gw-step2-only { animation: gwa-fade .25s var(--gwa-ease) both; }

/* Forms reset (style.css gives .banner-form-w3 a navy box; Bootstrap .text-center centres it) */
.gw-auth-page #registerForm.banner-form-w3 {
    max-width: none;
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: left !important;
}
.gw-auth-page #loginForm,
.gw-auth-page #registerForm { color: var(--gw-slate); text-align: left; }

/* ---------------------------------------------------------------------
   Fields. Each .input-group is a one-column grid:
   row 1 label, row 2 the control (icon / +91 prefix and spinners sit on top of it),
   then the validator help-block and server errors.
   --------------------------------------------------------------------- */
.gw-auth-page .input-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    position: relative;
    margin: 0 0 18px;
    flex-wrap: nowrap;
}
.gw-auth-page .gw-auth-label {
    grid-row: 1;
    grid-column: 1;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--gw-navy);
    text-align: left;
}

.gw-auth-page .input-group > .form-control,
.gw-auth-page .input-group > .select2-container {
    grid-row: 2;
    grid-column: 1;
}
.gw-auth-page .input-group > .form-control {
    width: 100% !important;
    height: 48px;
    min-height: 48px;
    margin: 0 !important;
    padding: 0 44px 0 48px;
    border: 1px solid var(--gwa-border) !important;
    border-radius: var(--gwa-field-radius) !important;
    background-color: var(--gw-ice);
    color: var(--gw-navy);
    font-family: var(--gw-font);
    font-size: 15px;
    font-weight: 400;
    box-shadow: none;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
/* select2 keeps the real <select> in the DOM, clipped off-screen: keep it that way */
.gw-auth-page .input-group > select.form-control.select2-offscreen {
    width: 1px !important;
    height: 1px !important;
    min-height: 0;
    border: 0 !important;
    padding: 0;
}
.gw-auth-page .input-group > .form-control::placeholder { color: var(--gwa-placeholder); opacity: 1; }
.gw-auth-page .input-group > .form-control:focus {
    border-color: var(--gw-gold) !important;
    background-color: var(--gw-white);
    box-shadow: var(--gwa-ring);
}

/* icon / +91 prefix: inside the field, on its left */
.gw-auth-page .input-group > .input-group-text {
    grid-row: 2;
    grid-column: 1;
    justify-self: start;
    z-index: 5;   /* Bootstrap lifts a focused .form-control to z-index 3: the +91 / icon must stay above it */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 !important;
    padding: 0;
    border: 0 !important;
    border-radius: var(--gwa-field-radius) 0 0 var(--gwa-field-radius) !important;
    background: transparent;
    color: var(--gw-slate);
    pointer-events: none;
}
.gw-auth-page .input-group > .gw-auth-prefix {
    width: auto;
    padding-left: 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gw-navy);
}
.gw-auth-page .phoneNoblock > .form-control { padding-left: 58px; }
.gw-auth-page .input-group:focus-within > .input-group-text { color: var(--gw-navy); }

/* Lookup spinners (inline-positioned by the old markup): moved onto the field's right edge */
.gw-auth-page .input-group > #preferences_loader,
.gw-auth-page .emailNoblock > #loader {
    grid-row: 2;
    grid-column: 1;
    justify-self: end;
    z-index: 5;
    display: flex;
    position: static !important;
    top: auto !important;
    right: auto !important;
    margin-right: 14px;
    color: var(--gw-slate) !important;
    pointer-events: none;
}

/* OTP: one big centred code field */
.gw-auth-page .gw-otp-field > .gw-otp-input {
    height: 58px;
    min-height: 58px;
    padding: 0 14px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: .5em;
    text-indent: .5em;
}
.gw-auth-page .gw-otp-field > .gw-otp-input::placeholder { letter-spacing: .2em; }

.gw-auth-page .gw-otp-sent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 18px;
    padding: 12px 16px;
    border: 1px solid var(--gwa-border);
    border-radius: var(--gwa-field-radius);
    background: var(--gw-ice);
    font-size: 14px;
    color: var(--gw-slate);
}
.gw-auth-page .gw-otp-number { color: var(--gw-navy); font-weight: 600; white-space: nowrap; }

.gw-auth-page .gw-auth-link {
    padding: 4px 2px;
    border: 0;
    background: none;
    color: var(--gw-gold-dark);
    font-family: var(--gw-font);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.gw-auth-page .gw-auth-link:hover { color: var(--gw-navy); }

/* reCAPTCHA slot: kept for the scripts, takes no space (SMS OTP needs no captcha) */
.gw-auth-page #captcha { display: block; margin: 0; }

/* ---------------------------------------------------------------------
   Inline errors (validator help-blocks, server @error, and the
   <p class="errorMessage"> lines the scripts insert after a field)
   --------------------------------------------------------------------- */
.gw-auth-page .input-group > .errorMessage {
    grid-column: 1;
    width: 100%;
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--gw-danger);
    text-align: left;
}
.gw-auth-page .input-group > .errorMessage:empty { display: none; }
.gw-auth-page .errorMessage ul { margin: 0; padding: 0; list-style: none; }
.gw-auth-page p.errorMessage {
    float: none !important;
    clear: both;
    margin: -10px 0 14px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--gw-danger);
    text-align: left !important;
}
.gw-auth-page p.errorMessage::before,
.gw-auth-page .input-group > .errorMessage:not(:empty)::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--gw-danger);
    color: var(--gw-white);
    font-size: 11px;
    font-weight: 700;
    vertical-align: -2px;
}
/* live "required" messages (signup-script.blade.php) share the look above */
.gw-auth-page p.gw-live-err { margin: -10px 0 14px; font-size: 13px; line-height: 1.45; color: var(--gw-danger); text-align: left; }
.gw-auth-page p.gw-live-err::before { content: "!"; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-right: 6px; border-radius: 50%; background: var(--gw-danger); color: var(--gw-white); font-size: 11px; font-weight: 700; }
.gw-auth-page .form-check + p.gw-live-err { margin-top: -6px; }
.gw-auth-page .form-check + p.errorMessage,
.gw-auth-page .gw-auth-consent + p.errorMessage { margin-top: -6px; }
.gw-auth-page .has-error > .form-control { border-color: var(--gw-danger) !important; }
.gw-auth-page .has-error > .form-control:focus { box-shadow: 0 0 0 3px rgba(var(--gw-danger-rgb), .14); }

/* Status messages */
.gw-auth-page .alert {
    margin: 0 0 18px;
    padding: 12px 14px !important;
    border-radius: var(--gwa-field-radius);
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}
.gw-auth-page .alert-danger {
    border: 1px solid rgba(var(--gw-danger-rgb), .25);
    background: rgba(var(--gw-danger-rgb), .07);
    color: var(--gw-danger);
}
.gw-auth-page .alert-success {
    border: 1px solid rgba(var(--gw-success-rgb), .25);
    background: rgba(var(--gw-success-rgb), .08);
    color: var(--gw-success);
}
.gw-auth-page .alert .sign-in-text {
    color: var(--gw-gold-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------------------------------------------------------------------
   Consent / terms checkboxes
   --------------------------------------------------------------------- */
.gw-auth-page .gw-auth-consent { margin: 4px 0 0; }
.gw-auth-page .consent-wrapper,
.gw-auth-page .form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 0;
    padding: 0;
    min-height: 0;
    text-align: left;
    cursor: pointer;
}
.gw-auth-page .form-check { margin-bottom: 18px; }
.gw-auth-page .consent-wrapper input,
.gw-auth-page .form-check .form-check-input {
    flex: 0 0 auto;
    float: none;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--gw-navy);
    cursor: pointer;
}
.gw-auth-page .form-check .form-check-input {
    border-color: rgba(var(--gw-navy-rgb), .35);
    border-radius: 5px;
}
.gw-auth-page .form-check .form-check-input:checked { background-color: var(--gw-navy); border-color: var(--gw-navy); }
.gw-auth-page .form-check .form-check-input:focus { box-shadow: var(--gwa-ring); border-color: var(--gw-gold); }
.gw-auth-page .consent-wrapper span,
.gw-auth-page .form-check-label {
    font-size: 13px;
    line-height: 1.5;
    color: var(--gw-slate) !important;
    -webkit-text-fill-color: var(--gw-slate);
    text-wrap: pretty;
    cursor: pointer;
}

/* Resend row (step 2) */
.gw-auth-page .gw-resend-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: -4px 0 16px;
    font-size: 14px;
    color: var(--gw-slate);
}
.gw-auth-page .resend-otp-text {
    color: var(--gw-gold-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.gw-auth-page .resend-otp-text:hover { color: var(--gw-navy); }
.gw-auth-page .resend-otp-text[disabled] { pointer-events: none; opacity: .55; }

/* Verify spinner on the login page */
.gw-auth-page #loginForm #loader {
    display: block;
    width: 26px;
    height: 26px;
    margin: 14px auto 0;
    border-width: 3px;
    color: var(--gw-gold-dark);
}

/* ---------------------------------------------------------------------
   Buttons: gold shine, navy text, 52px. No navy wipe on hover (the text stays navy).
   --------------------------------------------------------------------- */
.gw-auth-page .gw-auth-actions {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}
.gw-auth-page .btn-primary-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 12px 24px;
    border: 1px solid var(--gw-gold);
    border-radius: 999px !important;
    background: var(--gw-gold-shine);
    color: var(--gw-navy) !important;
    -webkit-text-fill-color: var(--gw-navy);
    font-family: var(--gw-font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .01em;
    text-transform: none;
    box-shadow: var(--gw-gold-glow);
    transition: transform .15s var(--gwa-ease), box-shadow .15s var(--gwa-ease), filter .15s ease;
}
.gw-auth-page .btn-primary-main.d-none { display: none !important; }
.gw-auth-page .btn-primary-main::after { display: none !important; }
.gw-auth-page .btn-primary-main:hover,
.gw-auth-page .btn-primary-main:focus-visible {
    transform: translateY(-1px);
    background: var(--gw-gold-shine);
    color: var(--gw-navy) !important;
    -webkit-text-fill-color: var(--gw-navy);
    box-shadow: 0 10px 26px rgba(var(--gw-gold-rgb), .55), inset 0 1px 0 rgba(var(--gw-ice-rgb), .65), inset 0 -2px 0 rgba(var(--gw-gold-dark-rgb), .25);
    filter: saturate(1.06);
}
.gw-auth-page .btn-primary-main:focus-visible {
    outline: 3px solid var(--gw-navy);
    outline-offset: 3px;
}
.gw-auth-page .btn-primary-main:active { transform: translateY(0); }
.gw-auth-page .btn-primary-main[disabled] {
    transform: none;
    opacity: .7;
    cursor: default;
}
.gw-auth-page .btn-primary-main .spinner-border {
    width: 18px;
    height: 18px;
    margin: 0 !important;
    border-width: 2px;
    color: var(--gw-navy);
}

/* Switch login / register */
.gw-auth-page .gw-auth-switch {
    margin: 22px 0 0;
    font-size: 14px;
    text-align: center;
    color: var(--gw-slate);
}
.gw-auth-page .gw-auth-switch a {
    margin-left: 4px;
    color: var(--gw-gold-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.gw-auth-page .gw-auth-switch a:hover { color: var(--gw-navy); }

/* Keyboard focus for links in the card */
.gw-auth-page .gw-auth-card a:focus-visible,
.gw-auth-page .gw-auth-link:focus-visible {
    outline: 3px solid var(--gw-navy);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------------------------------------------------------------------
   State dropdown (select2 3.5). The container copies the select's classes
   (form-control c_state), so it lands in the field grid like an input.
   --------------------------------------------------------------------- */
.gw-auth-page .input-group > .select2-container.form-control {
    display: block;
    width: 100% !important;
    height: 48px;
    padding: 0;
    border: 1px solid var(--gwa-border) !important;
    border-radius: var(--gwa-field-radius) !important;
    background-color: var(--gw-ice);
    box-shadow: none;
}
.gw-auth-page .select2-container .select2-choice {
    height: 46px;
    padding: 0 44px 0 48px;
    border: 0;
    border-radius: var(--gwa-field-radius);
    background: transparent !important;   /* style.css paints every a.select2-choice navy-light with !important */
    background-image: none;
    box-shadow: none !important;
    color: var(--gw-navy) !important;
    font-family: var(--gw-font);
    font-size: 15px;
    line-height: 46px;
    text-align: left;
}
.gw-auth-page .select2-container .select2-choice .select2-chosen { color: var(--gw-navy) !important; margin-right: 0; font-size: 15px !important; }
.gw-auth-page .select2-container .select2-default .select2-chosen,
.gw-auth-page .select2-container .select2-default { color: var(--gwa-placeholder) !important; }
.gw-auth-page .select2-container .select2-choice .select2-arrow {
    width: 40px;
    border: 0 !important;
    border-radius: 0 var(--gwa-field-radius) var(--gwa-field-radius) 0;
    background: transparent !important;   /* style.css: span.select2-arrow navy-light !important */
    background-image: none;
}
.gw-auth-page .select2-container .select2-choice .select2-arrow b {
    position: relative;
    background: none !important;
}
.gw-auth-page .select2-container .select2-choice .select2-arrow b::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border: solid var(--gw-slate);
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -70%) rotate(45deg);
    transition: transform .15s ease;
}
.gw-auth-page .select2-dropdown-open .select2-choice .select2-arrow b::after { transform: translate(-50%, -30%) rotate(225deg); }
.gw-auth-page .input-group > .select2-container-active.form-control,
.gw-auth-page .input-group > .select2-dropdown-open.form-control {
    border-color: var(--gw-gold) !important;
    background-color: var(--gw-white);
    box-shadow: var(--gwa-ring);
}
.gw-auth-page .select2-container-active .select2-choice,
.gw-auth-page .select2-dropdown-open .select2-choice { box-shadow: none !important; border: 0 !important; background: transparent !important; }

/* the dropdown itself is appended to <body>: scope it to these two pages with :has() */
body:has(.gw-auth-page) .select2-drop {
    margin-top: 4px;
    border: 1px solid var(--gw-gold) !important;
    border-radius: 12px;
    background: var(--gw-white) !important;   /* style.css: .select2-drop-active navy-light */
    box-shadow: 0 18px 40px rgba(var(--gw-navy-rgb), .18);
    font-family: var(--gw-font);
    color: var(--gw-navy) !important;
    overflow: hidden;
}
body:has(.gw-auth-page) .select2-drop.select2-drop-above { margin-top: -4px; }
body:has(.gw-auth-page) .select2-search { padding: 8px 8px 4px; }
body:has(.gw-auth-page) .select2-search input,
body:has(.gw-auth-page) .select2-input {
    height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(var(--gw-navy-rgb), .15);
    border-radius: 10px;
    background: var(--gw-ice) !important;
    color: var(--gw-navy) !important;
    font-family: var(--gw-font);
    font-size: 14px;
}
body:has(.gw-auth-page) .select2-search input:focus { border-color: var(--gw-gold); outline: none; box-shadow: 0 0 0 3px rgba(var(--gw-gold-rgb), .3); }
body:has(.gw-auth-page) .select2-results { margin: 4px 0; padding: 0 6px 6px; max-height: 240px; }
body:has(.gw-auth-page) .select2-results li { color: var(--gw-navy); background: transparent; }
body:has(.gw-auth-page) .select2-results .select2-result-label { padding: 9px 10px; border-radius: 8px; font-size: 14px; }
body:has(.gw-auth-page) .select2-results .select2-highlighted { background: var(--gw-navy) !important; color: var(--gw-white) !important; border-radius: 8px; }
body:has(.gw-auth-page) .select2-results .select2-highlighted .select2-result-label { color: var(--gw-white); }
body:has(.gw-auth-page) .select2-results .select2-disabled { background: transparent !important; color: var(--gw-slate) !important; opacity: .6; }
body:has(.gw-auth-page) .select2-results .select2-no-results,
body:has(.gw-auth-page) .select2-results .select2-searching,
body:has(.gw-auth-page) .select2-results .select2-ajax-error,
body:has(.gw-auth-page) .select2-results .select2-selection-limit {
    padding: 10px;
    background: transparent;
    color: var(--gw-navy);
    font-size: 14px;
}

/* ---------------------------------------------------------------------
   Motion
   --------------------------------------------------------------------- */
@keyframes gwa-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}
@keyframes gwa-fade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .gw-auth-page .gw-auth-brand { padding: 44px 36px 36px; }
    .gw-auth-page .gw-auth-card { padding: 40px 40px 36px; }
    .gw-auth-page .gw-auth-promise { font-size: 30px; }
}

/* Tablet / phone: one column, the brand panel becomes a slim header strip */
@media (max-width: 860px) {
    .gw-auth-page { padding: 24px 16px 48px; }
    .gw-auth-page .gw-auth-shell {
        grid-template-columns: minmax(0, 1fr);
        max-width: 560px;
        border-radius: 22px;
    }
    .gw-auth-page .gw-auth-brand {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 18px 20px;
    }
    .gw-auth-page .gw-auth-brand::before { width: 220px; height: 220px; right: -110px; bottom: -150px; }
    .gw-auth-page .gw-auth-brand::after { display: none; }
    .gw-auth-page .gw-auth-logo { height: 48px !important; align-self: center; }
    .gw-auth-page .gw-auth-brand-copy { margin-block: 0; }
    .gw-auth-page .gw-auth-promise { margin: 0; font-size: 17px; line-height: 1.35; letter-spacing: -.01em; }
    .gw-auth-page .gw-auth-ticks,
    .gw-auth-page .gw-auth-help { display: none; }
    .gw-auth-page .gw-auth-card { padding: 28px 22px 28px; }
    .gw-auth-page .gw-auth-title { font-size: 26px; }
    .gw-auth-page .gw-auth-sub { margin-bottom: 22px; }
}

@media (max-width: 400px) {
    .gw-auth-page .gw-auth-card { padding: 24px 18px; }
    .gw-auth-page .gw-auth-title { font-size: 24px; }
    .gw-auth-page .gw-auth-step-label { font-size: 12px; }
    .gw-auth-page .gw-auth-step + .gw-auth-step::before { width: 18px; }
    .gw-auth-page .gw-otp-sent { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    .gw-auth-page *,
    .gw-auth-page *::before,
    .gw-auth-page *::after,
    .gw-auth-page .gw-auth-shell {
        animation: none !important;
        transition: none !important;
    }
    .gw-auth-page .btn-primary-main:hover,
    .gw-auth-page .btn-primary-main:focus-visible { transform: none; }
}
