/* ==========================================================================
   OXFORD PARTNER — sign-in, partner application and notice pages
   agents/assets/css/auth.css

   Loads after agents.css and themes.css, so every brand colour here is a
   token and the whole door follows the agent's chosen palette. The only
   literal colours are white-on-brand overlays and WhatsApp's own green.

   Layout (includes/ui/auth_layout_open.php):
     .ag-auth               two columns
       .ag-auth-brand       the story: sticky, brand gradient, drawn routes
       .ag-auth-main        top bar, a centred card, help line, legal row

   Below 920px the brand panel goes and the top bar becomes a short brand
   band with the card lifted over it, because agents sign in from a phone at
   an airport more often than from a desk.
   ========================================================================== */

/* Compacted 2026-09-21: the sign-in overflowed a 1366x768 laptop, and even
   at 900px tall it read as airy rather than efficient. The vertical rhythm
   below is reduced throughout - padding, gaps, the headline and the card's
   own box - while every colour, radius and weight is untouched, so the page
   is the same design at a tighter scale. The height media queries near the
   end still apply on top of this. */
.ag-auth-body {
    min-height: 100vh;
    background: var(--ag-ground);
}

.ag-auth {
    display: grid;
    grid-template-columns: clamp(400px, 42vw, 620px) minmax(0, 1fr);
    min-height: 100vh;
}

/* --------------------------------------------------------------------------
   1. Brand panel
   -------------------------------------------------------------------------- */

.ag-auth-brand {
    position: sticky;
    top: 0;
    align-self: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    height: 100vh;
    height: 100dvh;
    padding: 26px 40px 24px;
    background: var(--ag-brand-grad);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

/* A fine dot grid, fading out from the top right, and a soft light at the
   foot: depth without a photograph on the critical path. */
.ag-auth-brand::before,
.ag-auth-brand::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}
.ag-auth-brand::before {
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.3px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 85% 12%, #000 0%, transparent 70%);
            mask-image: radial-gradient(ellipse 80% 60% at 85% 12%, #000 0%, transparent 70%);
}
.ag-auth-brand::after {
    width: 720px; height: 720px;
    left: -300px; bottom: -380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .12) 0%, transparent 65%);
}

.ag-auth-routes {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.ag-auth-routes path {
    fill: none;
    stroke: rgba(255, 255, 255, .22);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-dasharray: 1.5 7;
}
.ag-auth-routes circle { fill: rgba(255, 255, 255, .7); stroke: none; }
.ag-auth-routes .ag-auth-routes-ring {
    fill: none;
    stroke: rgba(255, 255, 255, .45);
    stroke-width: 1.2;
    transform-box: fill-box;
    transform-origin: center;
    animation: ag-auth-ping 3.2s cubic-bezier(.2, .6, .3, 1) infinite;
}
@keyframes ag-auth-ping {
    0%   { transform: scale(.35); opacity: .9; }
    80%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

.ag-auth-brand-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ag-auth-logo,
.ag-auth-top-logo {
    display: inline-flex;
    align-items: center;
    height: 44px;
}
.ag-auth-logo img,
.ag-auth-top-logo img {
    max-height: 44px;
    width: auto;
    /* Most brand marks in this codebase are dark-on-transparent, which
       disappears on the deep ramp. */
    filter: brightness(0) invert(1);
}
.ag-auth-logo span,
.ag-auth-top-logo span {
    font-family: var(--ag-font-head);
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.ag-auth-badge {
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(255, 255, 255, .88);
}

.ag-auth-brand-mid { max-width: 470px; }

.ag-auth-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .66);
}
.ag-auth-eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .5);
}

.ag-body .ag-auth-brand h1 {
    margin: 0 0 12px;
    font-size: clamp(1.7rem, 2.2vw, 2.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
    color: #fff;
}

.ag-auth-lede {
    max-width: 42ch;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .78);
}

/* What can be booked: five glass tiles in one row, so the set always reads
   as a set instead of wrapping one word onto a line of its own. */
.ag-auth-services {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 20px 0 24px;
    padding: 0;
    list-style: none;
}
.ag-auth-services li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 13px 2px 11px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 13px;
    background: rgba(255, 255, 255, .07);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    font-size: .74rem;
    font-weight: 600;
    white-space: nowrap;
    color: #fff;
}
.ag-auth-services svg {
    width: 21px; height: 21px;
    stroke: currentColor; stroke-width: 1.7; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
    opacity: .92;
}

.ag-auth-points {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ag-auth-points li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.ag-auth-point-ico {
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 11px;
    background: rgba(255, 255, 255, .09);
}
.ag-auth-point-ico svg {
    width: 18px; height: 18px;
    stroke: #fff; stroke-width: 1.8; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
}
.ag-auth-points b,
.ag-auth-steps b {
    display: block;
    margin-bottom: 2px;
    font-size: .94rem;
    font-weight: 600;
    color: #fff;
}
.ag-auth-points li div > span,
.ag-auth-steps li span {
    display: block;
    font-size: .84rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, .7);
}

/* The application's four steps, as a numbered timeline. */
.ag-auth-subhead {
    margin: 22px 0 12px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}
.ag-auth-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: ag-step;
}
.ag-auth-steps li {
    position: relative;
    min-height: 44px;
    padding: 4px 0 20px 48px;
    counter-increment: ag-step;
}
.ag-auth-steps li:last-child { padding-bottom: 0; }
.ag-auth-steps li::before {
    content: counter(ag-step);
    position: absolute;
    left: 0; top: 0;
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: rgba(255, 255, 255, .09);
    font-size: .8rem;
    font-weight: 700;
    color: #fff;
}
.ag-auth-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 15.5px; top: 38px; bottom: 4px;
    width: 1px;
    background: linear-gradient(rgba(255, 255, 255, .32), rgba(255, 255, 255, .08));
}

.ag-auth-brand-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    font-size: .76rem;
    color: rgba(255, 255, 255, .58);
}
.ag-auth-trust {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .78);
}
.ag-auth-trust svg {
    width: 15px; height: 15px;
    stroke: currentColor; stroke-width: 1.8; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   2. Work area — top bar, stage, card, help and legal lines
   -------------------------------------------------------------------------- */

.ag-auth-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    background:
        radial-gradient(900px 420px at 72% -8%, var(--ag-accent-wash), transparent 72%),
        var(--ag-ground);
}

.ag-auth-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 32px;
}
.ag-auth-top-logo { display: none; }

.ag-auth-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
.ag-auth-top-text {
    font-size: .85rem;
    color: var(--ag-ink-3);
}

/* Panel colour popover. */
.ag-auth-palette { position: relative; }
.ag-auth-palette-btn {
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border: 1px solid var(--ag-line);
    border-radius: 10px;
    background: var(--ag-surface);
    color: var(--ag-ink-3);
    cursor: pointer;
    list-style: none;
    transition: background var(--ag-ease), color var(--ag-ease), border-color var(--ag-ease);
}
.ag-auth-palette-btn::-webkit-details-marker { display: none; }
.ag-auth-palette-btn:hover,
.ag-auth-palette[open] .ag-auth-palette-btn {
    border-color: var(--ag-line-strong);
    color: var(--ag-accent);
}
.ag-auth-palette-btn svg {
    width: 17px; height: 17px;
    stroke: currentColor; stroke-width: 1.8; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
}
.ag-auth-palette-pop {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 60;
    width: 232px;
    padding: 12px 12px 13px;
    border: 1px solid var(--ag-line);
    border-radius: 14px;
    background: var(--ag-surface);
    box-shadow: var(--ag-shadow-lg);
}
.ag-auth-palette-pop p {
    margin: 0 0 9px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ag-ink-4);
}
.ag-auth-palette-row { display: flex; flex-wrap: wrap; gap: 7px; }
.ag-auth-palette-row .ag-theme-swatch { width: 28px; height: 28px; border-radius: 8px; }

.ag-auth-stage {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 6px 32px 20px;
}

.ag-auth-card {
    --ag-card-px: 38px;
    --ag-card-pb: 24px;
    width: 100%;
    max-width: 452px;
    padding: 28px var(--ag-card-px) var(--ag-card-pb);
    border: 1px solid var(--ag-line);
    border-radius: 20px;
    background: var(--ag-surface);
    box-shadow: var(--ag-shadow-lg);
}
.ag-auth-card-wide { max-width: 580px; }
.ag-auth-card > .ag-alert { margin-bottom: 18px; }

.ag-auth-help {
    margin: 0;
    font-size: .83rem;
    text-align: center;
    color: var(--ag-ink-3);
}
.ag-auth-help a { font-weight: 600; }

.ag-auth-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    padding: 4px 24px 22px;
    font-size: .76rem;
    color: var(--ag-ink-4);
}
.ag-body .ag-auth-legal a { color: var(--ag-ink-3); }

/* --------------------------------------------------------------------------
   3. Card content shared by every step
   -------------------------------------------------------------------------- */

.ag-auth-head { margin-bottom: 17px; }
.ag-auth-head-ico {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    margin-bottom: 12px;
    border: 1px solid var(--ag-accent-soft);
    border-radius: 13px;
    background: var(--ag-accent-wash);
    color: var(--ag-accent);
}
.ag-auth-head-ico svg {
    width: 19px; height: 19px;
    stroke: currentColor; stroke-width: 1.8; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
}
.ag-body .ag-auth-head h2 {
    margin: 0 0 6px;
    font-size: 1.4rem;
    letter-spacing: -.025em;
}
.ag-auth-head p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.55;
    color: var(--ag-ink-3);
}
.ag-auth-head strong { color: var(--ag-ink); font-weight: 600; }

.ag-auth-card .ag-btn-lg { min-height: 44px; }
.ag-auth-card .ag-btn-lg svg { width: 17px; height: 17px; }
.ag-auth-card .ag-input { padding-block: 11px; }

.ag-auth-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
    font-size: .74rem;
    font-weight: 500;
    color: var(--ag-ink-4);
}
.ag-auth-or::before,
.ag-auth-or::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--ag-line);
}

.ag-body .ag-auth-google {
    gap: 11px;
    border-color: var(--ag-line-strong);
    font-weight: 600;
    color: var(--ag-ink);
}
.ag-body .ag-auth-google:hover { box-shadow: var(--ag-shadow-sm); }
.ag-auth-google svg {
    /* Multi-colour brand mark: must NOT inherit currentColor. */
    flex: 0 0 18px;
    stroke: none;
}

.ag-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}
.ag-body .ag-label-link { font-size: .78rem; font-weight: 600; }

.ag-auth-foot {
    margin: 16px 0 0;
    font-size: .86rem;
    text-align: center;
    color: var(--ag-ink-3);
}
.ag-auth-foot a { font-weight: 600; }

/* A strip across the foot of the card, edge to edge. */
.ag-auth-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 22px calc(-1 * var(--ag-card-px)) calc(-1 * var(--ag-card-pb));
    padding: 11px var(--ag-card-px);
    border-top: 1px solid var(--ag-line-soft);
    border-radius: 0 0 19px 19px;
    background: var(--ag-surface-2);
    font-size: .77rem;
    text-align: center;
    color: var(--ag-ink-3);
}
.ag-auth-secure svg {
    flex: 0 0 15px;
    width: 15px; height: 15px;
    stroke: var(--ag-ok); stroke-width: 1.8; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
}

.ag-auth-alt {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
}
.ag-auth-alt form { margin: 0; }

/* The single code field shown when JavaScript is off. */
.ag-otp-input {
    font-family: var(--ag-font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: .42em;
    text-align: center;
    padding-block: 13px;
    /* The tracking leaves a gap after the last glyph; this re-centres it. */
    text-indent: .42em;
}

.ag-field-error {
    display: none;
    margin: 5px 0 0;
    font-size: .76rem;
    font-weight: 500;
    color: var(--ag-danger);
}
.ag-field-error:not(:empty) { display: block; }

.ag-opt {
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--ag-surface-3);
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--ag-ink-3);
    vertical-align: 1px;
}

/* --------------------------------------------------------------------------
   4. Sign-in gate — Google, then mobile/email, then per-digit code
   -------------------------------------------------------------------------- */

.ag-gate-step[hidden] { display: none !important; }

/* Mobile-or-email in one outline, the flag picker inside it. */
.ag-ident {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--ag-line-strong);
    border-radius: 10px;
    background: var(--ag-surface);
    transition: border-color var(--ag-ease), box-shadow var(--ag-ease);
}
.ag-ident:focus-within {
    border-color: var(--ag-accent);
    box-shadow: var(--ag-ring);
}
.ag-ident.is-invalid { border-color: var(--ag-danger); }
.ag-ident.is-invalid:focus-within { box-shadow: 0 0 0 3px var(--ag-danger-bg); }
.ag-ident .ag-input,
.ag-ident .ag-select {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
}
.ag-ident .ag-input:focus,
.ag-ident .ag-select:focus { box-shadow: none; }

.ag-ident-isd {
    flex: 0 0 auto;
    width: 92px;
    padding-left: 12px;
    border-right: 1px solid var(--ag-line) !important;
    font-weight: 600;
    color: var(--ag-ink-2);
}
.ag-ident-isd[hidden] { display: none; }
.ag-ident-field {
    flex: 1 1 auto;
    min-width: 0;
    font-size: .95rem;
}

/* intl-tel-input 17 inside the single .ag-ident outline. */
.ag-ident > .iti {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    display: block;
}
/* The no-JavaScript select is after the input in the DOM; order moves it left.
   Never set display on <noscript>: with JavaScript on, `display: contents`
   printed the fallback <select> markup as text across the field. */
.ag-ident > noscript { order: -1; }

.ag-ident .iti--separate-dial-code .iti__selected-flag {
    padding: 0 10px 0 13px;
    background: var(--ag-surface-2);
    border-right: 1px solid var(--ag-line);
    border-radius: 9px 0 0 9px;
    transition: background var(--ag-ease);
}
.ag-ident .iti--separate-dial-code .iti__selected-flag:hover,
.ag-ident .iti--separate-dial-code .iti__selected-flag:focus {
    background: var(--ag-surface-3);
    outline: none;
}
.ag-ident .iti__selected-dial-code {
    margin-left: 8px;
    font-family: var(--ag-font);
    font-weight: 600;
    color: var(--ag-ink-2);
}
.ag-ident .iti__arrow { margin-left: 7px; border-top-color: var(--ag-ink-3); }
.ag-ident .iti__arrow--up { border-top-color: transparent; border-bottom-color: var(--ag-ink-3); }

.ag-ident .iti__country-list {
    z-index: 90;
    margin-top: 6px;
    max-width: min(360px, calc(100vw - 40px));
    white-space: normal;
    border: 1px solid var(--ag-line);
    border-radius: var(--ag-radius-sm);
    background: var(--ag-surface);
    box-shadow: var(--ag-shadow-lg);
    font-family: var(--ag-font);
    font-size: .86rem;
    color: var(--ag-ink);
}
.ag-ident .iti__country { padding: 7px 12px; }
.ag-ident .iti__country.iti__highlight { background: var(--ag-accent-wash); }
.ag-ident .iti__dial-code { color: var(--ag-ink-3); }
.ag-ident .iti__divider { border-bottom-color: var(--ag-line); }

/* Email typed: no country applies. !important because the library sets
   padding-left inline. */
.ag-ident.is-email .iti__flag-container { display: none; }
.ag-ident.is-email .iti input.ag-ident-field { padding-left: 12px !important; }

/* One box per digit. */
.ag-otp {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 4px 0 6px;
}
.ag-otp[hidden] { display: none; }

.ag-otp-box {
    width: 50px;
    height: 58px;
    padding: 0;
    border: 1px solid var(--ag-line-strong);
    border-radius: 12px;
    background: var(--ag-surface);
    font-family: var(--ag-font-mono);
    font-size: 1.45rem;
    font-weight: 600;
    text-align: center;
    color: var(--ag-ink);
    caret-color: var(--ag-accent);
    transition: border-color var(--ag-ease), box-shadow var(--ag-ease), transform var(--ag-ease);
}
.ag-otp-box:focus {
    outline: none;
    border-color: var(--ag-accent);
    box-shadow: var(--ag-ring);
    transform: translateY(-1px);
}
/* A filled box is tinted, so the count of digits reads at a glance. */
.ag-otp-box:not(:placeholder-shown),
.ag-otp-box[value]:not([value=""]) {
    background: var(--ag-accent-wash);
    border-color: var(--ag-accent-line);
}
.ag-otp-box.is-invalid {
    border-color: var(--ag-danger);
    background: var(--ag-danger-bg);
    animation: ag-shake .32s ease-in-out;
}
@keyframes ag-shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-4px); }
    75%      { transform: translateX(4px); }
}

/* Password | OTP tabs, the /b2b/ layout: a segmented pill, the active half
   filled with the accent. */
.ag-signin-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 18px;
    padding: 4px;
    border: 1px solid var(--ag-line);
    border-radius: 12px;
    background: var(--ag-surface-2);
}
.ag-body .ag-signin-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 9px;
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ag-ink-3);
    transition: background var(--ag-ease), color var(--ag-ease), box-shadow var(--ag-ease);
}
.ag-body .ag-signin-tab:hover { color: var(--ag-ink); }
.ag-body .ag-signin-tab[aria-selected="true"] {
    background: var(--ag-accent-grad);
    color: var(--ag-on-brand);
    box-shadow: 0 1px 2px rgba(17, 26, 46, .10), 0 8px 18px -10px var(--ag-accent-line);
}
.ag-signin-tab:focus-visible { outline: 2px solid var(--ag-accent); outline-offset: 2px; }
.ag-signin-tab svg {
    width: 15px; height: 15px;
    stroke: currentColor; stroke-width: 1.8; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
}
.ag-signin-panel[hidden] { display: none !important; }

/* Remember me on the left, Forgot password on the right. */
.ag-signin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -2px 0 16px;
}
.ag-signin-row .ag-check input[type="checkbox"] { margin-top: 0; }
.ag-signin-row .ag-check { align-items: center; }

/* --------------------------------------------------------------------------
   5. Partner application
   -------------------------------------------------------------------------- */

.ag-stepper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}
.ag-stepper li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    font-size: .76rem;
    font-weight: 600;
    text-align: center;
    color: var(--ag-ink-4);
    transition: color var(--ag-ease);
}
.ag-stepper li + li::before {
    content: "";
    position: absolute;
    top: 15px;
    left: calc(-50% + 24px);
    right: calc(50% + 24px);
    height: 2px;
    border-radius: 2px;
    background: var(--ag-line);
    transition: background var(--ag-ease);
}
.ag-stepper li.is-current,
.ag-stepper li.is-done { color: var(--ag-ink-2); }
.ag-stepper li.is-current::before,
.ag-stepper li.is-done::before { background: var(--ag-accent); }

.ag-stepper-dot {
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    border: 1.5px solid var(--ag-line-strong);
    border-radius: 50%;
    background: var(--ag-surface);
    font-size: .8rem;
    font-weight: 700;
    color: var(--ag-ink-3);
    transition: background var(--ag-ease), border-color var(--ag-ease), color var(--ag-ease), box-shadow var(--ag-ease);
}
.ag-stepper-dot svg {
    display: none;
    width: 15px; height: 15px;
    stroke: currentColor; stroke-width: 2.4; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
}
.ag-stepper li.is-current .ag-stepper-dot {
    border-color: var(--ag-accent);
    color: var(--ag-accent);
    box-shadow: 0 0 0 4px var(--ag-accent-soft);
}
.ag-stepper li.is-done .ag-stepper-dot {
    border-color: var(--ag-accent);
    background: var(--ag-accent);
    color: #fff;
}
.ag-stepper li.is-done .ag-stepper-dot b { display: none; }
.ag-stepper li.is-done .ag-stepper-dot svg { display: block; }

.ag-reg-step[hidden] { display: none !important; }
.ag-reg-step { animation: ag-reg-in .28s ease both; }
@keyframes ag-reg-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

.ag-reg-step-title {
    margin: 0 0 4px;
    font-family: var(--ag-font-head);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ag-ink);
}
.ag-reg-step-sub {
    margin: 0 0 18px;
    font-size: .85rem;
    color: var(--ag-ink-3);
}

.ag-reg-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    padding: 11px 14px;
    border: 1px solid var(--ag-line);
    border-radius: 12px;
    background: var(--ag-surface-2);
    font-size: .8rem;
    line-height: 1.5;
    color: var(--ag-ink-2);
}
.ag-reg-note svg {
    flex: 0 0 17px;
    width: 17px; height: 17px;
    margin-top: 1px;
    stroke: var(--ag-accent); stroke-width: 1.8; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
}

.ag-reg-mono { font-family: var(--ag-font-mono); letter-spacing: .06em; }
.ag-reg-mono::placeholder { letter-spacing: .04em; }

.ag-reg-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.ag-reg-actions .ag-btn-primary { flex: 1 1 auto; }
.ag-reg-actions .ag-btn-ghost { flex: 0 0 auto; min-width: 104px; }
.ag-reg-actions .ag-btn-ghost svg { transform: scaleX(-1); }

/* Step 3 — the WhatsApp code. */
.ag-reg-verify { padding: 4px 0 2px; text-align: center; }
.ag-reg-wa {
    display: grid;
    place-items: center;
    width: 58px; height: 58px;
    margin: 0 auto 14px;
    border: 1px solid #bfe7cf;
    border-radius: 17px;
    background: #e8f8ef;
    color: #128c4b;
}
.ag-reg-wa svg {
    width: 28px; height: 28px;
    stroke: currentColor; stroke-width: 1.7; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
}
.ag-body .ag-reg-verify h3 { margin: 0 0 6px; font-size: 1.15rem; }
.ag-reg-verify > p {
    max-width: 38ch;
    margin: 0 auto 20px;
    font-size: .88rem;
    color: var(--ag-ink-3);
}
.ag-reg-verify > p strong { color: var(--ag-ink); white-space: nowrap; }
.ag-reg-verify .ag-auth-alt { justify-content: center; gap: 4px 14px; }

/* Step 4 — password strength. */
.ag-pw-meter {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin-top: 9px;
}
.ag-pw-meter span {
    height: 4px;
    border-radius: 3px;
    background: var(--ag-line);
    transition: background var(--ag-ease);
}
.ag-pw-meter[data-score="1"] span:nth-child(-n+1) { background: var(--ag-danger); }
.ag-pw-meter[data-score="2"] span:nth-child(-n+2) { background: #d9901a; }
.ag-pw-meter[data-score="3"] span:nth-child(-n+3) { background: #3f9a6b; }
.ag-pw-meter[data-score="4"] span { background: var(--ag-ok); }
.ag-pw-label {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
    font-size: .75rem;
    color: var(--ag-ink-3);
}
.ag-pw-label b { font-weight: 600; color: var(--ag-ink-2); }

.ag-reg-terms { margin: 6px 0 16px; }
.ag-reg-terms .ag-check { font-size: .83rem; line-height: 1.5; }
.ag-reg-terms a { font-weight: 600; }

/* Done. */
.ag-reg-done { text-align: center; }
.ag-reg-done[hidden] { display: none; }
.ag-reg-done-ico {
    display: grid;
    place-items: center;
    width: 66px; height: 66px;
    margin: 4px auto 18px;
    border: 1px solid var(--ag-ok-line);
    border-radius: 50%;
    background: var(--ag-ok-bg);
    color: var(--ag-ok);
    animation: ag-reg-pop .45s cubic-bezier(.2, 1.4, .4, 1) both;
}
.ag-reg-done-ico svg {
    width: 30px; height: 30px;
    stroke: currentColor; stroke-width: 2.2; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
}
@keyframes ag-reg-pop {
    from { transform: scale(.6); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
.ag-body .ag-reg-done h2 { margin: 0 0 8px; font-size: 1.55rem; letter-spacing: -.02em; }
.ag-reg-done > p { max-width: 44ch; margin: 0 auto; font-size: .9rem; color: var(--ag-ink-3); }
.ag-reg-done > p strong { color: var(--ag-ink); font-weight: 600; }

.ag-reg-id {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 22px 0;
    padding: 14px 14px 14px 18px;
    border: 1px dashed var(--ag-accent-line);
    border-radius: 14px;
    background: var(--ag-accent-wash);
    text-align: left;
}
.ag-reg-id small {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ag-ink-3);
}
.ag-reg-id strong {
    font-family: var(--ag-font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--ag-ink);
}

.ag-reg-next {
    display: grid;
    gap: 12px;
    margin: 0 0 24px;
    padding: 16px 18px;
    border: 1px solid var(--ag-line);
    border-radius: 14px;
    list-style: none;
    counter-reset: ag-next;
    text-align: left;
}
.ag-reg-next li {
    position: relative;
    padding-left: 34px;
    font-size: .85rem;
    line-height: 1.5;
    color: var(--ag-ink-2);
    counter-increment: ag-next;
}
.ag-reg-next li::before {
    content: counter(ag-next);
    position: absolute;
    left: 0; top: 0;
    display: grid;
    place-items: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--ag-surface-3);
    font-size: .72rem;
    font-weight: 700;
    color: var(--ag-ink-2);
}

/* --------------------------------------------------------------------------
   6. Responsive
   -------------------------------------------------------------------------- */

/* Short desktop windows: the sticky brand panel is exactly one viewport tall,
   so the long descriptions go before anything clips. */
@media (min-width: 921px) and (max-height: 800px) {
    .ag-auth-points li div > span,
    .ag-auth-steps li span { display: none; }
    .ag-auth-steps li { padding-bottom: 12px; min-height: 36px; }
    .ag-auth-steps li b { padding-top: 5px; }
    .ag-auth-points { gap: 12px; }
    .ag-auth-points li { align-items: center; }
    .ag-auth-points b { margin-bottom: 0; }
    .ag-auth-services { margin: 20px 0 22px; }
    .ag-auth-subhead { margin-top: 22px; }
}
/* Laptop heights: tighten the card so the sign-in fits above the fold. */
@media (min-width: 921px) and (max-height: 800px) {
    .ag-auth-top { padding-block: 14px; }
    .ag-auth-stage { padding-bottom: 18px; }
    .ag-auth-card { padding-top: 28px; }
    .ag-auth-head { margin-bottom: 18px; }
    .ag-auth-head-ico { width: 40px; height: 40px; margin-bottom: 12px; border-radius: 11px; }
    .ag-auth-head-ico svg { width: 19px; height: 19px; }
    .ag-auth-or { margin: 16px 0; }
    .ag-auth-foot { margin-top: 16px; }
    .ag-auth-secure { margin-top: 16px; padding-block: 11px; }
}
@media (min-width: 921px) and (max-height: 640px) {
    .ag-auth-points,
    .ag-auth-lede { display: none; }
}

@media (max-width: 1180px) {
    .ag-auth { grid-template-columns: minmax(360px, 38vw) minmax(0, 1fr); }
    .ag-auth-brand { padding: 30px 34px 26px; }
    .ag-auth-services { gap: 6px; }
    .ag-auth-services li { font-size: .68rem; padding-inline: 0; }
    .ag-auth-badge { display: none; }
    .ag-auth-top { padding: 18px 24px; }
    .ag-auth-stage { padding-inline: 24px; }
}

@media (max-width: 920px) {
    .ag-auth { grid-template-columns: 1fr; }
    .ag-auth-brand { display: none; }

    /* The top bar becomes a short brand band and the card is lifted over it. */
    .ag-auth-top {
        padding: 16px 18px 70px;
        background: var(--ag-brand-grad);
    }
    .ag-auth-top-logo { display: inline-flex; height: 38px; }
    .ag-auth-top-logo img { max-height: 38px; }
    .ag-auth-top-text { color: rgba(255, 255, 255, .72); }
    .ag-body .ag-auth-top .ag-btn-ghost {
        border-color: rgba(255, 255, 255, .3);
        background: rgba(255, 255, 255, .1);
        color: #fff;
    }
    .ag-body .ag-auth-top .ag-btn-ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }
    .ag-auth-palette-btn {
        border-color: rgba(255, 255, 255, .3);
        background: rgba(255, 255, 255, .1);
        color: #fff;
    }
    .ag-auth-palette-btn:hover,
    .ag-auth-palette[open] .ag-auth-palette-btn { border-color: rgba(255, 255, 255, .5); color: #fff; }

    .ag-auth-main { background: var(--ag-ground); }
    .ag-auth-stage {
        justify-content: flex-start;
        margin-top: -54px;
        padding: 0 16px 24px;
    }
}

@media (max-width: 560px) {
    .ag-auth-top-text { display: none; }
    .ag-auth-card {
        --ag-card-px: 20px;
        --ag-card-pb: 22px;
        padding-top: 26px;
        border-radius: 18px;
    }
    .ag-auth-secure { border-radius: 0 0 17px 17px; }
    .ag-auth-head { margin-bottom: 20px; }
    .ag-auth-head-ico { width: 42px; height: 42px; margin-bottom: 14px; }
    .ag-body .ag-auth-head h2 { font-size: 1.36rem; }

    .ag-auth-card .ag-form-grid > .ag-col-6 { grid-column: span 12 !important; }

    .ag-stepper { margin-bottom: 22px; }
    .ag-stepper li { font-size: .7rem; }
    .ag-stepper li + li::before { left: calc(-50% + 20px); right: calc(50% + 20px); }

    .ag-reg-actions .ag-btn-ghost { min-width: 0; padding-inline: 14px; }
    .ag-reg-id strong { font-size: 1.1rem; }
}

@media (max-width: 420px) {
    /* Six boxes must fit the card at 360px wide, with room for an 8-digit code. */
    .ag-otp { gap: 5px; }
    .ag-otp-box {
        width: min(44px, calc((100vw - 72px - 25px) / 6));
        height: 52px;
        font-size: 1.25rem;
    }
    .ag-ident-isd { width: 80px; padding-left: 9px; }
    .ag-otp-input { font-size: 1.26rem; letter-spacing: .3em; text-indent: .3em; }
    .ag-auth-alt { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .ag-auth-routes .ag-auth-routes-ring,
    .ag-reg-step,
    .ag-reg-done-ico { animation: none; }
}

/* ==========================================================================
   Compact, modern sign-in (2026-09): a narrower brand panel, tighter type
   and spacing, a smaller card - and the "Get the app" badges under it.
   ========================================================================== */
.ag-auth { grid-template-columns: clamp(340px, 34vw, 500px) minmax(0, 1fr); }
.ag-auth-brand { padding: 22px 32px 20px; gap: 14px; }
.ag-auth-brand-mid { max-width: 400px; }
.ag-body .ag-auth-brand h1 { font-size: clamp(1.45rem, 1.8vw, 1.85rem); margin-bottom: 8px; }
.ag-auth-lede { font-size: .92rem; line-height: 1.55; }
.ag-auth-eyebrow { margin-bottom: 10px; font-size: .68rem; }
.ag-auth-services { margin: 14px 0 16px; gap: 6px; }
.ag-auth-top { padding: 12px 26px; }
.ag-auth-stage { gap: 10px; padding: 4px 24px 14px; }
.ag-auth-card { --ag-card-px: 28px; --ag-card-pb: 20px; max-width: 400px; padding-top: 22px; border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 40px -18px rgba(15, 23, 42, .22); }
.ag-auth-card .ag-btn-lg { min-height: 42px; }
.ag-auth-card .ag-input { padding-block: 10px; }
.ag-auth-help { font-size: .8rem; }

/* Get the app. */
.ag-app-get { display: grid; justify-items: center; gap: 8px; margin-top: 4px; }
.ag-app-get-k { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ag-ink-3); }
.ag-app-get-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ag-app-badge { display: inline-flex; align-items: center; gap: 9px; min-width: 150px; height: 46px; padding: 0 16px 0 12px;
    border-radius: 11px; background: #0b0f19; color: #fff; text-decoration: none; cursor: pointer; list-style: none;
    box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); transition: transform .15s ease, background .15s ease; }
.ag-app-badge::-webkit-details-marker { display: none; }
.ag-app-badge:hover { background: #1f2533; color: #fff; text-decoration: none; transform: translateY(-1px); }
.ag-app-badge svg { width: 24px; height: 24px; flex: none; }
.ag-app-badge span { display: grid; line-height: 1.05; text-align: left; }
.ag-app-badge small { font-size: .6rem; letter-spacing: .04em; opacity: .85; }
.ag-app-badge b { font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; }
.ag-app-ios { position: relative; }
.ag-app-ios-pop { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); z-index: 20; width: 260px;
    padding: 14px 16px; border: 1px solid var(--ag-line); border-radius: 12px; background: var(--ag-surface); color: var(--ag-ink-2, #334155);
    box-shadow: var(--ag-shadow-lg); font-size: .82rem; text-align: left; }
.ag-app-ios-pop b { color: var(--ag-ink-1, #0f172a); }
.ag-app-ios-pop ol { margin: 8px 0; padding-left: 18px; display: grid; gap: 4px; }
.ag-app-ios-pop p { margin: 0; color: var(--ag-ink-3); }

@media (max-width: 920px) {
    .ag-auth { grid-template-columns: 1fr; }
    .ag-auth-card { max-width: 420px; }
}
@media (max-width: 420px) {
    .ag-app-badge { min-width: 0; flex: 1 1 140px; }
}
/* On a phone the iPhone guide opens from the badge's right edge, so it
   never runs off the screen. */
@media (max-width: 560px) {
    .ag-app-ios-pop { left: auto; right: 0; transform: none; width: min(260px, calc(100vw - 32px)); }
}

/* Install on this computer. */
.ag-pc-install { display: grid; justify-items: center; gap: 8px; margin-top: 2px; }
.ag-pc-install[hidden] { display: none; }
.ag-pc-btn { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border: 1px solid var(--ag-line);
    border-radius: 12px; background: var(--ag-surface); color: var(--ag-ink-1, #0f172a); font: inherit; text-align: left; cursor: pointer;
    box-shadow: 0 6px 16px -10px rgba(15, 23, 42, .35); transition: border-color .15s ease, transform .15s ease; }
.ag-pc-btn:hover { border-color: var(--ag-accent, #12397f); transform: translateY(-1px); }
.ag-pc-btn svg { width: 26px; height: 26px; flex: none; color: var(--ag-accent, #12397f); }
.ag-pc-btn span { display: grid; line-height: 1.15; }
.ag-pc-btn b { font-size: .9rem; }
.ag-pc-btn small { font-size: .72rem; color: var(--ag-ink-3); }
.ag-pc-help { max-width: 340px; padding: 12px 14px; border: 1px solid var(--ag-line); border-radius: 12px; background: var(--ag-surface);
    font-size: .8rem; color: var(--ag-ink-2, #334155); }
.ag-pc-help[hidden] { display: none; }
.ag-pc-help ol { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
