/* ==========================================================================
   JRB Holiday - shared styles for every authentication surface
   ==========================================================================
   Pages: portal/login.php, portal/register.php, portal/forgot-password.php,
          portal/reset-password.php, admin/index.php, agent/index.php
   Panel: includes/auth_panel.php

   PALETTE
   Gold is the brand accent, charcoal the ground. Two deliberate deviations
   from the supplied mock-up, both required by WCAG 2.2 AA:
     * CTA fill stays bright gold (#CFA50F) but its LABEL is charcoal
       (#1A1D21) -> 7.0:1, where white-on-gold would be 2.3:1.
     * Gold TEXT on white uses a darkened gold (#8A6A08) -> 4.8:1, where
       bright gold would be 2.3:1.
   The #D9DDE1 hairline from the brief is only 1.3:1 on #F8F9FA, so it is used
   for decorative dividers while INPUT BOUNDARIES use #7C8894 (3.4:1), which
   meets the 3:1 minimum for user-interface components.

   THEMING
   Light is the default, matching the brief. A visitor who has chosen the
   site's dark theme (html[data-theme="dark"], set by includes/header.php)
   gets a dark form column instead. Only the form column changes: the brand
   panel is a photograph and reads the same either way.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Ground */
    --auth-canvas: #F1F2F4;
    --auth-surface: #FFFFFF;
    --auth-surface-2: #F8F9FA;
    --auth-surface-3: #FDF6E3;

    /* Ink */
    --auth-ink: #1A1D21;
    --auth-muted: #4A5560;   /* 7.4:1 on white */
    --auth-quiet: #656F7A;   /* 4.9:1 on #F8F9FA - placeholders are text */

    /* Lines */
    --auth-line: #D9DDE1;        /* decorative only */
    --auth-line-field: #7C8894;  /* 3.4:1 on #F8F9FA - inputs */

    /* Gold */
    --auth-gold: #CFA50F;        /* fill; pair with --auth-ink as the label */
    --auth-gold-hover: #B9920C;
    --auth-gold-text: #8A6A08;   /* 4.8:1 on white */
    --auth-gold-bright: #F4C430; /* gold on charcoal */
    --auth-gold-ink: #1A1D21;    /* the label ON a gold fill; dark in BOTH themes */
    --auth-gold-pale: #FDF6E3;
    --auth-gold-line: #E8D9A8;

    /* Charcoal ground for the brand panel */
    --auth-charcoal: #1A1D21;
    --auth-charcoal-deep: #0F1216;

    /* Status */
    --auth-error: #B3261E;
    --auth-error-bg: #FDECEA;
    --auth-success: #1B5E20;
    --auth-success-bg: #E8F5E9;
    --auth-warn: #8A5A00;
    --auth-warn-bg: #FFF4E0;

    /* Focus. Bright gold is only 2.3:1 on white, so the ring is the darkened
       gold; it stays clearly visible against both the canvas and the fields. */
    --auth-focus: #8A6A08;
    --auth-focus-ring: rgba(138, 106, 8, .28);

    /* Shape and motion */
    --auth-radius: 10px;
    --auth-radius-lg: 14px;
    --auth-control-h: 48px;
    --auth-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
    --auth-ring: 0 0 0 3px var(--auth-focus-ring);
    --auth-t: 160ms cubic-bezier(.2, .7, .2, 1);

    --auth-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

html[data-theme="dark"] {
    --auth-canvas: #0F1216;
    --auth-surface: #151A20;
    --auth-surface-2: #1B2129;
    --auth-surface-3: #241F14;

    --auth-ink: #F2F4F6;
    --auth-muted: #AEB6BF;
    --auth-quiet: #8B949E;

    --auth-line: #2A323B;
    --auth-line-field: #6E7A87;  /* 3.7:1 on #1B2129 - inputs */

    --auth-gold-hover: #E0B722;
    --auth-gold-text: #E8B923;
    --auth-gold-ink: #14100A;
    --auth-gold-pale: #241F14;
    --auth-gold-line: #4A3D14;

    --auth-error: #FF9C93;
    --auth-error-bg: #3A1D1A;
    --auth-success: #8BD99B;
    --auth-success-bg: #1B2E1F;
    --auth-warn: #F0C070;
    --auth-warn-bg: #322614;

    --auth-focus: #F4C430;
    --auth-focus-ring: rgba(244, 196, 48, .35);

    --auth-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
}

/* --------------------------------------------------------------------------
   2. Page and split shell
   -------------------------------------------------------------------------- */
body.auth-page {
    margin: 0;
    background: var(--auth-canvas);
    color: var(--auth-ink);
    font-family: var(--auth-font);
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    width: 100%;
    box-sizing: border-box;
}

/* Full-bleed: the photograph reaches the viewport edges, exactly as in the
   design. Portal pages sit inside the site's bare <main>, standalone pages
   inside <body>, so both get the same treatment. */
.auth-shell.auth-shell--split {
    display: grid;
    grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
    align-items: stretch;
    min-height: clamp(560px, calc(100vh - 140px), 940px);
    background: var(--auth-surface);
}

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    padding: clamp(28px, 4.4vw, 64px) clamp(20px, 5vw, 72px);
    background: var(--auth-surface);
    overflow: hidden;
}

/* Soft gold glow in the form column - the mock-up's faint watermark motif,
   drawn in pure CSS so it costs no request and needs no asset. */
.auth-panel::before {
    content: "";
    position: absolute;
    inset-inline-end: -180px;
    inset-block-start: -180px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(207, 165, 15, .13), rgba(207, 165, 15, 0) 68%);
    pointer-events: none;
}

.auth-panel > * {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
}

.auth-panel--wide > * {
    max-width: 560px;
}

/* --------------------------------------------------------------------------
   3. Top bar (standalone pages only)
   -------------------------------------------------------------------------- */
.auth-topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    box-sizing: border-box;
    padding: 16px clamp(20px, 4vw, 48px);
    background: var(--auth-surface);
}

.auth-topbar__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    color: var(--auth-muted);
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: color var(--auth-t);
}

.auth-topbar__back:hover,
.auth-topbar__back:focus-visible {
    color: var(--auth-ink);
}

/* --------------------------------------------------------------------------
   4. Brand panel (includes/auth_panel.php)
   -------------------------------------------------------------------------- */
.auth-brand {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
    padding: clamp(24px, 3.4vw, 52px);
    overflow: hidden;
    background: var(--auth-charcoal-deep);
    isolation: isolate;
}

.auth-brand__media,
.auth-brand__tint,
.auth-brand__scrim {
    position: absolute;
    inset: 0;
}

.auth-brand__media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.auth-brand__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    display: block;
}

/* Warm the photograph towards the brand gold, then darken it so white type
   always has a large, stable contrast cushion regardless of the crop. */
.auth-brand__tint {
    background: linear-gradient(150deg, rgba(207, 165, 15, .30), rgba(26, 29, 33, .34) 55%);
    mix-blend-mode: multiply;
}

.auth-brand__scrim {
    background:
        linear-gradient(to top, rgba(15, 18, 22, .94) 4%, rgba(15, 18, 22, .74) 38%, rgba(15, 18, 22, .30) 74%, rgba(15, 18, 22, .18) 100%);
}

.auth-brand__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 460px;
}

.auth-brand__logo {
    width: auto;
    height: clamp(44px, 4.6vw, 60px);
    margin-bottom: clamp(20px, 2.6vw, 34px);
    align-self: flex-start;
}

.auth-brand__eyebrow {
    margin: 0;
    color: var(--auth-gold-bright);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.auth-brand__rule {
    display: block;
    width: 52px;
    height: 3px;
    margin: 14px 0 16px;
    background: var(--auth-gold);
    border-radius: 2px;
}

.auth-brand__headline {
    margin: 0 0 14px;
    font-size: clamp(1.75rem, 2.9vw, 2.75rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #FFFFFF;
}

.auth-brand__headline-gold {
    display: block;
    color: var(--auth-gold-bright);
}

.auth-brand__copy {
    margin: 0 0 clamp(20px, 2.4vw, 30px);
    max-width: 38ch;
    color: rgba(255, 255, 255, .84);
    font-size: .9375rem;
    line-height: 1.6;
}

.auth-brand__features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: clamp(16px, 2vw, 22px) 0 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.auth-brand__feature {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: rgba(255, 255, 255, .9);
    font-size: .75rem;
    line-height: 1.35;
    font-weight: 500;
}

.auth-brand__feature i {
    color: var(--auth-gold-bright);
    font-size: 1.25rem;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   5. Form header
   -------------------------------------------------------------------------- */
.auth-head {
    margin-bottom: 26px;
}

/* Short gold bar above the title, as in the design. */
.auth-head::before {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-bottom: 18px;
    background: var(--auth-gold);
    border-radius: 2px;
}

.auth-title {
    margin: 0 0 8px;
    color: var(--auth-ink);
    font-size: clamp(1.55rem, 2.2vw, 1.95rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.auth-sub {
    margin: 0;
    color: var(--auth-muted);
    font-size: .9375rem;
    line-height: 1.55;
}

/* --------------------------------------------------------------------------
   6. Alerts
   -------------------------------------------------------------------------- */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 20px;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: var(--auth-radius);
    font-size: .875rem;
    line-height: 1.5;
}

.auth-alert i {
    flex: none;
    margin-top: 1px;
    font-size: 1rem;
    line-height: 1.2;
}

.auth-alert strong {
    font-weight: 600;
}

.auth-alert--error {
    color: var(--auth-error);
    background: var(--auth-error-bg);
    border-color: currentColor;
}

.auth-alert--success {
    color: var(--auth-success);
    background: var(--auth-success-bg);
    border-color: currentColor;
}

.auth-alert--warn {
    color: var(--auth-warn);
    background: var(--auth-warn-bg);
    border-color: currentColor;
}

/* --------------------------------------------------------------------------
   7. Fields
   -------------------------------------------------------------------------- */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

/* Two fields side by side (registration forms). */
.auth-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
}

.auth-label {
    color: var(--auth-ink);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .005em;
}

.auth-control {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-control__icon {
    position: absolute;
    inset-inline-start: 15px;
    color: var(--auth-quiet);
    font-size: 1rem;
    line-height: 1;
    pointer-events: none;
}

.auth-input {
    box-sizing: border-box;
    width: 100%;
    height: var(--auth-control-h);
    padding: 0 14px;
    color: var(--auth-ink);
    background: var(--auth-surface-2);
    border: 1px solid var(--auth-line-field);
    border-radius: var(--auth-radius);
    font-family: inherit;
    font-size: .9375rem;
    line-height: 1.4;
    transition: border-color var(--auth-t), box-shadow var(--auth-t), background-color var(--auth-t);
    appearance: none;
}

.auth-input--icon {
    padding-inline-start: 44px;
}

.auth-control--password .auth-input {
    padding-inline-end: 52px;
}

.auth-input::placeholder {
    color: var(--auth-quiet);
    opacity: 1;
}

.auth-input:hover:not(:disabled) {
    border-color: var(--auth-muted);
}

.auth-input:focus {
    outline: none;
    background: var(--auth-surface);
    border-color: var(--auth-gold-text);
    box-shadow: var(--auth-ring);
}

.auth-input:disabled {
    color: var(--auth-quiet);
    background: var(--auth-canvas);
    cursor: not-allowed;
}

/* Keyboard focus must stay obvious on the non-input controls too. */
.auth-input:focus-visible,
.auth-btn:focus-visible,
.auth-reveal:focus-visible,
.auth-tabs__tab:focus-visible,
.auth-links a:focus-visible,
.auth-links__quiet:focus-visible,
.auth-forgot:focus-visible,
.auth-topbar__back:focus-visible {
    outline: 2px solid var(--auth-focus);
    outline-offset: 2px;
    scroll-margin-top: 96px;
}

/* Six-digit codes read better as one grouped, centred field than as six
   separate boxes: no JavaScript required and assistive tech treats it as a
   single, well-labelled input. */
.auth-input--code {
    padding-inline-start: 44px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: .34em;
    text-indent: .1em;
}

.auth-input--code::placeholder {
    letter-spacing: .34em;
    font-weight: 500;
}

.auth-select {
    box-sizing: border-box;
    height: var(--auth-control-h);
    padding: 0 36px 0 12px;
    color: var(--auth-ink);
    background-color: var(--auth-surface-2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2355606C' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    border: 1px solid var(--auth-line-field);
    border-radius: var(--auth-radius);
    font-family: inherit;
    font-size: .9375rem;
    appearance: none;
}

.auth-reveal {
    position: absolute;
    inset-inline-end: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--auth-quiet);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: color var(--auth-t), background-color var(--auth-t);
}

.auth-reveal:hover {
    color: var(--auth-ink);
    background: var(--auth-canvas);
}

/* The value error text sits directly under its field and is referenced by the
   input through aria-describedby in JS; it is hidden until it has a message. */
.auth-error {
    margin: 0;
    color: var(--auth-error);
    font-size: .8125rem;
    line-height: 1.45;
}

.auth-error:empty {
    display: none;
}

.auth-hint {
    margin: 0;
    color: var(--auth-quiet);
    font-size: .8125rem;
    line-height: 1.5;
}

.auth-hint--center {
    text-align: center;
}

.auth-hint a,
.auth-hint strong {
    color: var(--auth-muted);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   8. Remember me + forgot password
   -------------------------------------------------------------------------- */
.auth-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--auth-muted);
    font-size: .875rem;
    cursor: pointer;
    user-select: none;
}

.auth-check input[type="checkbox"] {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--auth-gold);
    cursor: pointer;
}

.auth-check input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--auth-focus);
    outline-offset: 2px;
}

.auth-forgot {
    color: var(--auth-gold-text);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
}

.auth-forgot:hover {
    color: var(--auth-gold-hover);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   9. Buttons
   -------------------------------------------------------------------------- */
.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    min-height: var(--auth-control-h);
    width: 100%;
    padding: 12px 20px;
    color: var(--auth-gold-ink);       /* ~7:1 on the gold fill, both themes */
    background: var(--auth-gold);
    border: 1px solid transparent;
    border-radius: var(--auth-radius);
    font-family: inherit;
    font-size: .9375rem;
    font-weight: 700;
    letter-spacing: .01em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--auth-t), transform var(--auth-t), box-shadow var(--auth-t);
}

.auth-btn:hover {
    background: var(--auth-gold-hover);
    color: var(--auth-gold-ink);
    text-decoration: none;
}

.auth-btn:active {
    transform: translateY(1px);
}

.auth-btn[disabled],
.auth-btn[aria-busy="true"] {
    opacity: .68;
    cursor: progress;
}

.auth-btn__spinner {
    display: none;
    width: 1.05em;
    height: 1.05em;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: auth-spin .7s linear infinite;
}

.auth-btn[aria-busy="true"] .auth-btn__spinner {
    display: inline-block;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

/* WhatsApp hand-off used by the registration verification step. */
.auth-btn--wa {
    color: #FFFFFF;
    background: #128C7E;
}

.auth-btn--wa:hover {
    color: #FFFFFF;
    background: #0E6F64;
}

/* --------------------------------------------------------------------------
   10. Links block
   -------------------------------------------------------------------------- */
.auth-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--auth-line);
    text-align: center;
}

.auth-links p {
    margin: 0;
    color: var(--auth-muted);
    font-size: .875rem;
}

.auth-links a {
    color: var(--auth-gold-text);
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
}

.auth-links a:hover {
    color: var(--auth-gold-hover);
    text-decoration: underline;
}

.auth-links__quiet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--auth-quiet) !important;
    font-size: .8125rem;
    font-weight: 500 !important;
}

.auth-links__quiet:hover {
    color: var(--auth-muted) !important;
    text-decoration: none !important;
}

/* --------------------------------------------------------------------------
   11. Tabs (agent portal: sign in / register)
   -------------------------------------------------------------------------- */
.auth-tabs {
    display: flex;
    gap: 6px;
    margin: 0 0 24px;
    padding: 5px;
    list-style: none;
    background: var(--auth-surface-2);
    border: 1px solid var(--auth-line);
    border-radius: var(--auth-radius);
}

.auth-tabs li {
    flex: 1 1 0;
    min-width: 0;
}

.auth-tabs__tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    color: var(--auth-muted);
    border-radius: 7px;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--auth-t), background-color var(--auth-t);
}

.auth-tabs__tab:hover {
    color: var(--auth-ink);
    background: var(--auth-surface);
}

.auth-tabs__tab.is-active {
    color: var(--auth-ink);
    background: var(--auth-surface);
    box-shadow: var(--auth-shadow);
}

/* --------------------------------------------------------------------------
   12. Progress rail (registration steps)
   -------------------------------------------------------------------------- */
.auth-rail {
    display: flex;
    gap: 10px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    counter-reset: auth-step;
}

.auth-rail__step {
    flex: 1 1 0;
    padding-top: 12px;
    border-top: 3px solid var(--auth-line);
    color: var(--auth-quiet);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.auth-rail__step.is-done {
    border-top-color: var(--auth-gold);
    color: var(--auth-muted);
}

.auth-rail__step[aria-current="step"] {
    border-top-color: var(--auth-ink);
    color: var(--auth-ink);
}

/* --------------------------------------------------------------------------
   13. Password strength meter
   -------------------------------------------------------------------------- */
.auth-meter {
    display: flex;
    gap: 5px;
    margin-top: 4px;
}

.auth-meter__seg {
    flex: 1 1 0;
    height: 5px;
    background: var(--auth-line);
    border-radius: 3px;
    transition: background-color var(--auth-t);
}

.auth-strength {
    margin: 6px 0 0;
    color: var(--auth-quiet);
    font-size: .8125rem;
}

/* --------------------------------------------------------------------------
   14. Terms + choice groups
   -------------------------------------------------------------------------- */
.auth-field--terms {
    gap: 6px;
}

.auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--auth-muted);
    font-size: .875rem;
    line-height: 1.5;
    cursor: pointer;
}

.auth-terms input[type="checkbox"] {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--auth-gold);
    cursor: pointer;
}

.auth-terms a {
    color: var(--auth-gold-text);
    font-weight: 600;
}

.auth-choice__options {
    display: grid;
    gap: 10px;
}

.auth-choice__option {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 15px;
    background: var(--auth-surface-2);
    border: 1px solid var(--auth-line-field);
    border-radius: var(--auth-radius);
    font-size: .875rem;
    line-height: 1.5;
    cursor: pointer;
    transition: border-color var(--auth-t), background-color var(--auth-t);
}

.auth-choice__option:hover {
    border-color: var(--auth-muted);
}

.auth-choice__option:has(input:checked) {
    background: var(--auth-gold-pale);
    border-color: var(--auth-gold-text);
}

.auth-choice__option input {
    flex: none;
    margin: 2px 0 0;
    accent-color: var(--auth-gold);
}

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
    /* Stack: a compact brand banner above the task. The feature strip is the
       first thing to go, then the supporting copy. */
    .auth-shell.auth-shell--split {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .auth-brand {
        min-height: 0;
        padding: 22px 20px 24px;
    }

    .auth-brand__img {
        object-position: center 34%;
    }

    .auth-brand__scrim {
        background: linear-gradient(to top, rgba(15, 18, 22, .95) 10%, rgba(15, 18, 22, .62) 60%, rgba(15, 18, 22, .34) 100%);
    }

    .auth-brand__logo {
        height: 40px;
        margin-bottom: 16px;
    }

    .auth-brand__headline {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .auth-brand__copy,
    .auth-brand__features {
        display: none;
    }

    .auth-panel {
        padding: 30px 20px 40px;
    }

    .auth-panel::before {
        display: none;
    }
}

@media (max-width: 560px) {
    .auth-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .auth-options {
        flex-direction: row;
        align-items: center;
    }
}

/* --------------------------------------------------------------------------
   16. Accessibility and print
   -------------------------------------------------------------------------- */
/* Skip links are styled site-wide by foundation.css (.jrb-ui-skip-link).
   A page-local .skip-link rule here only hid the one on auth pages, which is
   why the link printed as plain text everywhere else. */

@media (prefers-reduced-motion: reduce) {
    .auth-shell *,
    .auth-shell *::before,
    .auth-shell *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .auth-btn:active {
        transform: none;
    }
}

/* Windows High Contrast: the photograph and tints carry no meaning, so they
   drop out and the real text keeps the system colours. */
@media (forced-colors: active) {
    .auth-brand__media,
    .auth-brand__tint,
    .auth-brand__scrim,
    .auth-panel::before {
        display: none;
    }

    .auth-brand {
        background: Canvas;
        border: 1px solid CanvasText;
    }

    .auth-brand__eyebrow,
    .auth-brand__headline,
    .auth-brand__headline-gold,
    .auth-brand__copy,
    .auth-brand__feature,
    .auth-brand__feature i {
        color: CanvasText;
    }

    .auth-input,
    .auth-select,
    .auth-btn,
    .auth-choice__option,
    .auth-tabs {
        border: 1px solid CanvasText;
    }
}

@media print {
    .auth-brand,
    .auth-topbar {
        display: none;
    }

    .auth-shell.auth-shell--split {
        display: block;
        min-height: 0;
    }

    .auth-panel {
        padding: 0;
    }
}
