/* =============================================================================================
 * login.css
 *
 * Styles for the pre-login pages: index.php, forgotpassword.php and mfaenrollment.php.
 * Deliberately separate from css/omnergy.css - nothing here is loaded by the main ExtJS app after
 * login, and nothing from the main app's CSS is loaded on these pages.
 *
 * Visual direction adapted (not copied) from David's Omnergy UI style draft
 * (claude/20261113-david-omnergy-ui-style/), colour values from the Omniflex brand guide v2.12.9.
 * Presentation only - the pages' behaviour and wording are unchanged by this file.
 *
 * Sizing: html font-size is 62.5% so 1rem = 10px, while still honouring the user's own browser
 * font-size setting (a percentage, not a fixed px value).
 *
 * Class naming: snake_case, matching the existing ids/classes on these pages. Classes the page's
 * JavaScript sets or creates (messagebox*, tenant_row_*, mfa_method_count, mfa_help_text,
 * migration_note, password_toggle_btn) keep their existing names.
 *
 * REVISIONS
 * 1.0 - 2026-11-16 - JCC - Created for the big-bang login visual redesign (index.php).
 * 1.1 - 2026-11-16 - JCC - Added forgotpassword.php: link buttons, disabled inputs, link error
 *                          panel, password rules panel.
 * 1.2 - 2026-11-16 - JCC - Removed the green bar under the product logo. Omniflex logo replaced by a
 *                          bold "Omniflex" link to omniflex.com in the footer line.
 * 1.3 - 2026-11-16 - JCC - Fonts: IBM Plex Sans now the variable font (the static paths never
 *                          matched the download, so Sans had been falling back to Arial).
 *                          woff2 sources removed - only ttf files exist.
 * 1.4 - 2026-11-16 - JCC - Added mfaenrollment.php: wide column, method rows, authenticator set-up
 *                          panel, recovery codes, secondary/danger/disabled buttons, disabled
 *                          checkboxes.
 * ========================================================================================== */


/* ---------- Fonts -------------------------------------------------------------------------
 * IBM Plex Sans/Mono (SIL Open Font License), self-hosted rather than loaded from Google Fonts
 * so no visitor IP address is sent to a third party. Files as downloaded from Google Fonts (ttf).
 * If a file is missing, the font stacks below fall back to Arial and the system monospace
 * font - the page still works, it just looks plainer.
 *
 * Sans is the single variable font: one file covers every weight from 100 to 700, so one request
 * serves all the weights used here (300 lead text, 400 body, 500 labels/buttons, 600 headings,
 * 700 the Omniflex link). The comma in the file name is fine inside a quoted url().
 * Mono has no variable file in the download, so its two used weights are declared separately. */
@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 100 700;
    font-display: swap;
    src: url('../fonts/IBM_Plex_Sans/IBMPlexSans-VariableFont_wdth,wght.ttf') format('truetype');
}
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/IBM_Plex_Mono/IBMPlexMono-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/IBM_Plex_Mono/IBMPlexMono-Medium.ttf') format('truetype');
}


/* ---------- Tokens ------------------------------------------------------------------------
 * --ox-*   : Omniflex brand colours.
 * --auth-* : values specific to these pages. */
:root {
    --ox-white: #FFFFFF;
    --ox-blue: #004A92;
    --ox-blue-deep: #00305F;
    --ox-blue-pale: #E8F0F8;
    --ox-blue-paler: #F4F8FC;
    --ox-green: #009477;          /* non-text only - fails AA contrast as small text on white */
    --ox-green-deep: #006654;     /* green used for text */
    --ox-graphite: #2D2D2D;
    --ox-steel: #5A6470;
    --ox-mist: #8A9099;           /* borders only - never text */
    --ox-signal-red: #C5283D;

    --auth-hairline: rgba(0, 74, 146, 0.12);
    --auth-font-sans: 'IBM Plex Sans', Arial, Helvetica, sans-serif;
    --auth-font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
    --auth-radius: 0.4rem;
    --auth-radius-row: 0.8rem;
    --auth-touch: 4.4rem;         /* minimum height of anything clickable */
    --auth-col-width: 38rem;      /* content column width */
    --auth-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}


/* ---------- Base -------------------------------------------------------------------------- */
html {
    font-size: 62.5%;
    height: 100%;
}
*, *::before, *::after {
    box-sizing: border-box;
}
body.auth_page {
    margin: 0;
    height: 100%;
    overflow: hidden;   /* the page itself never scrolls - .auth_task does if it must */
    font-family: var(--auth-font-sans);
    font-size: 1.5rem;
    line-height: 1.35;
    color: var(--ox-graphite);
    background: var(--ox-white);
    -webkit-font-smoothing: antialiased;
}
.auth_page a {
    color: var(--ox-blue);
    text-decoration: none;
}
.auth_page a:hover {
    color: var(--ox-blue-deep);
    text-decoration: underline;
}
.auth_page :focus-visible {
    outline: 2px solid var(--ox-green);
    outline-offset: 2px;
}


/* ---------- Shell: brand panel left, task area right --------------------------------------
 * grid-template-rows: minmax(0, 1fr) caps the row at the window height instead of letting it
 * grow to its content - without it (and min-height: 0 on every level below), the account list
 * would never get a bounded height and so would never scroll inside its own box. */
.auth_shell {
    height: 100%;
    display: grid;
    grid-template-columns: minmax(32rem, 34%) 1fr;
    grid-template-rows: minmax(0, 1fr);
}

/* Blue brand panel with a faint blueprint grid - the only decorative element. The existing PNG
   logos were made for the old blue page background, so they sit on this panel unchanged. */
.auth_brand {
    min-height: 0;
    padding: clamp(2.8rem, 4vw, 5.6rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4rem;
    color: var(--ox-white);
    background-color: var(--ox-blue);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 3.2rem 3.2rem;
}
.auth_brand :focus-visible {
    outline-color: var(--ox-white);
}
.auth_brand_logo {
    display: block;
    max-width: 100%;
    height: auto;
}
.auth_brand_foot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 1.3rem;
    color: var(--ox-blue-pale);
}
/* "Omniflex" in the footer line: bold, and white rather than the page's blue link colour, which
   would vanish on the blue panel. */
.auth_page .auth_brand_link {
    font-weight: 700;
    color: var(--ox-white);
    text-decoration: none;
}
.auth_page .auth_brand_link:hover {
    color: var(--ox-white);
    text-decoration: underline;
}
/* Copyright line, under "powered by Omniflex" - smaller and monospaced, as in David's draft. */
.auth_brand_copy {
    font-family: var(--auth-font-mono);
    font-size: 1.2rem;
}

/* White task area. Scrolls only as a last resort (very short windows) - normally everything
   fits and only the account list scrolls, inside its own box. */
.auth_task {
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 4rem clamp(2rem, 5vw, 8rem);
}

/* Content column, vertically centred via auto margins (unlike justify-content: center, this
   doesn't push overflowing content off the top where it can't be scrolled to). max-height
   bounds it to the task area so the account list inside can shrink and scroll. */
.auth_col {
    width: 100%;
    max-width: var(--auth-col-width);
    max-height: 100%;
    min-height: 0;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

/* One login step (#login_form, #mfa_form, #tenant_form) and its sub-views. jQuery's
   show()/fadeIn() clear the inline display:none and fall back to this display:flex. */
.auth_step {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    min-height: 0;
}
/* A step holding a scrolling list - takes whatever height is left in the column. */
.auth_step_fill {
    flex: 1 1 auto;
}
/* A tighter group inside a step - help text plus its field. */
.auth_group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


/* ---------- Text -------------------------------------------------------------------------- */
.auth_heading {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--ox-blue);
}
.mfa_help_text {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--ox-steel);
}

/* Migration notice above the credentials. */
.migration_note {
    padding: 1.4rem 1.6rem;
    font-size: 1.3rem;
    line-height: 1.45;
    color: var(--ox-graphite);
    background: var(--ox-blue-paler);
    border: 1px solid var(--auth-hairline);
    border-left: 0.3rem solid var(--ox-blue);
    border-radius: var(--auth-radius);
}
.migration_note strong {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--ox-blue);
}

/* forgotpassword.php: expired/used/invalid reset link. Same panel shape as .migration_note, in
   the error colour. */
.link_error {
    padding: 1.4rem 1.6rem;
    font-size: 1.3rem;
    line-height: 1.45;
    color: var(--ox-graphite);
    background: #FBEFF1;        /* Signal Red at roughly 7 % on white */
    border: 1px solid rgba(197, 40, 61, 0.25);
    border-left: 0.3rem solid var(--ox-signal-red);
    border-radius: var(--auth-radius);
}
.link_error strong {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--ox-signal-red);
}

/* forgotpassword.php: password requirements, under the form. Quieter than the notices above. */
.password_rules {
    flex: none;
    padding: 1.2rem 1.6rem;
    font-size: 1.3rem;
    line-height: 1.5;
    color: var(--ox-steel);
    background: var(--ox-bone);
    border-radius: var(--auth-radius);
}
.password_rules strong {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: var(--ox-graphite);
}
.password_rules ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.password_rules ul li::before {
    content: '\2022\00a0';
}


/* ---------- Fields ------------------------------------------------------------------------ */
.auth_field {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.auth_field label {
    font-size: 1.3rem;
    font-weight: 500;
}
.auth_input {
    width: 100%;
    height: var(--auth-touch);
    padding: 0 1.4rem;
    font: inherit;
    font-size: 1.5rem;
    color: var(--ox-graphite);
    background: var(--ox-white);
    border: 1px solid var(--ox-mist);
    border-radius: var(--auth-radius);
}
.auth_input:focus {
    border-color: var(--ox-blue);
    outline: none;
}
/* Read-only context, e.g. the account email on forgotpassword.php. */
.auth_input:disabled {
    color: var(--ox-steel);
    background: var(--ox-bone);
    border-color: var(--auth-hairline);
}
.auth_input:focus-visible {
    outline: 2px solid var(--ox-green);
    outline-offset: 2px;
}
/* One-time code: large, monospaced, centred. text-indent balances the trailing letter-spacing
   after the last digit so the code looks centred. */
.auth_input_otp {
    height: 5.6rem;
    font-family: var(--auth-font-mono);
    font-size: 2.6rem;
    letter-spacing: 0.3em;
    text-indent: 0.3em;
    text-align: center;
}
.auth_input_code {
    font-family: var(--auth-font-mono);
}

/* Password field with its show/hide button inside the right-hand end. */
.password_field_wrapper {
    position: relative;
}
.password_field_wrapper .auth_input {
    padding-right: var(--auth-touch);
}
.password_toggle_btn {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--auth-touch);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    color: var(--ox-steel);
    background: none;
    border: 0;
    border-radius: var(--auth-radius);
    cursor: pointer;
}
.password_toggle_btn:hover {
    color: var(--ox-graphite);
}
.password_toggle_btn svg {
    display: block;
    width: 1.8rem;
    height: 1.8rem;
}

/* Checkbox: a real <input type="checkbox">, restyled. */
.auth_check {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.4rem;
    cursor: pointer;
}
.auth_check input {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    width: 1.8rem;
    height: 1.8rem;
    margin: 0;
    display: grid;
    place-content: center;
    background: var(--ox-white);
    border: 1px solid var(--ox-mist);
    border-radius: 0.3rem;
    cursor: pointer;
}
.auth_check input:checked {
    background: var(--ox-green-deep);
    border-color: var(--ox-green-deep);
}
.auth_check input:checked::after {
    content: "";
    width: 0.5rem;
    height: 0.9rem;
    border: solid var(--ox-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-0.1rem, -0.1rem);
}
/* Unavailable option (e.g. SMS with no verified mobile number on mfaenrollment.php). */
.auth_check:has(input:disabled),
.auth_check input:disabled {
    cursor: not-allowed;
}
.auth_check input:disabled {
    background: var(--ox-bone);
    border-color: var(--auth-hairline);
}


/* ---------- Buttons and links ------------------------------------------------------------- */
.auth_btn {
    appearance: none;
    -webkit-appearance: none;
    min-height: var(--auth-touch);
    padding: 0 2.2rem;
    font: inherit;
    font-size: 1.4rem;
    font-weight: 500;
    border: 0;
    border-radius: var(--auth-radius);
    cursor: pointer;
}
.auth_btn_primary {
    width: 100%;
    color: var(--ox-white);
    background: var(--ox-blue);
}
.auth_btn_primary:hover {
    background: var(--ox-blue-deep);
}
/* An <a> styled as a button (e.g. Return to Login - it navigates, so it's a link). */
a.auth_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.auth_page a.auth_btn_primary,
.auth_page a.auth_btn_primary:hover {
    color: var(--ox-white);
    text-decoration: none;
}
/* A <button> that looks like a link (e.g. Forgot Password?, which posts rather than navigates). */
.auth_btn_link {
    min-height: 0;
    padding: 0;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--ox-blue);
    background: none;
}
.auth_btn_link:hover {
    color: var(--ox-blue-deep);
    text-decoration: underline;
}
/* Secondary action inside a row (Set up, Generate, Verify & enable). Outlined, so the page's one
   primary (filled) button stays the obvious next step. */
.auth_btn_secondary {
    flex: none;
    white-space: nowrap;    /* "Set up" was wrapping onto two lines at phone width */
    color: var(--ox-blue);
    background: transparent;
    border: 1px solid rgba(0, 74, 146, 0.25);
}
.auth_btn_secondary:hover {
    background: var(--ox-blue-paler);
}
/* Destructive action inside a row (Remove): red text, no fill, so it doesn't compete with set-up. */
.auth_btn_danger {
    flex: none;
    white-space: nowrap;
    padding: 0 0.8rem;
    color: var(--ox-signal-red);
    background: transparent;
}
.auth_btn_danger:hover {
    text-decoration: underline;
}
/* Any button that can't be used yet (e.g. Continue to login before a method is enabled). */
.auth_btn:disabled,
.auth_btn:disabled:hover {
    color: var(--ox-steel);
    background: var(--ox-bone);
    border: 1px solid var(--auth-hairline);
    cursor: not-allowed;
}
/* Row of secondary links under a step's main button. */
.auth_links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem 2rem;
    font-size: 1.3rem;
}


/* ---------- Selection lists (accounts, MFA methods) ---------------------------------------
 * Each row is a real <button> inside an <li>, so it is keyboard-focusable and announced as a
 * button - the old rows were clickable <div>s. */
.auth_list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--auth-hairline);
}
.auth_list li {
    border-bottom: 1px solid var(--auth-hairline);
}
.auth_row {
    width: 100%;
    min-height: 5.6rem;
    margin: 0.4rem 0;
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1.6rem;
    font: inherit;
    text-align: left;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: var(--auth-radius-row);
    cursor: pointer;
}
.auth_row:hover {
    background: var(--ox-blue-paler);
}
.auth_row_text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.auth_row_label,
.tenant_row_name {
    font-size: 1.6rem;
    font-weight: 500;
}
.tenant_row_id {
    font-family: var(--auth-font-mono);
    font-size: 1.3rem;
    color: var(--ox-steel);
}
.mfa_method_count {
    font-size: 1.3rem;
    color: var(--ox-steel);
}
.auth_row_chev {
    flex: none;
    color: var(--ox-mist);
    transition: transform 200ms var(--auth-ease-out), color 100ms linear;
}
.auth_row:hover .auth_row_chev,
.auth_row:focus-visible .auth_row_chev {
    color: var(--ox-green);
    transform: translateX(4px);
}

/* The account list scrolls inside its own box; heading, filter and back link stay put.
   Needs the min-height: 0 chain from .auth_shell down (see above). */
.auth_scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

/* Account filter, shown above a threshold number of accounts (see index.php). */
.auth_filter {
    position: relative;
    flex: none;
}
.auth_filter svg {
    position: absolute;
    left: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ox-steel);
    pointer-events: none;
}
.auth_filter .auth_input {
    padding-left: 4.2rem;
}
.auth_filter_empty {
    margin: 0;
    color: var(--ox-steel);
}


/* ---------- MFA enrollment (mfaenrollment.php) --------------------------------------------- */

/* Wider column than the login steps: each method row carries an action, and the authenticator
   set-up panel puts a QR code beside its instructions. This page can be taller than the window,
   so the column isn't capped at the window height - the task area scrolls instead. */
.auth_col_wide {
    max-width: 56rem;
    max-height: none;
}
/* The four methods, as a list of rows divided by hairlines. */
.mfa_method_list {
    border-top: 1px solid var(--auth-hairline);
}
.mfa_method_row {
    padding: 1.6rem 0.4rem;
    border-bottom: 1px solid var(--auth-hairline);
}
.mfa_method_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.6rem;
}
.mfa_method_name {
    font-size: 1.5rem;
    font-weight: 500;
}
.mfa_method_detail {
    margin-top: 0.3rem;
    font-size: 1.3rem;
    color: var(--ox-steel);
}
/* Set by the page's JS on the SMS row when there's no verified mobile number. Steel, not Mist -
   Mist fails contrast as text. */
.mfa_method_unavailable .mfa_method_name {
    color: var(--ox-steel);
}

/* Authenticator set-up: QR code beside the steps, the key and the confirm field. */
.totp_qr_panel {
    margin-top: 1.6rem;
    padding: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
    background: var(--ox-blue-paler);
    border: 1px solid var(--auth-hairline);
    border-radius: var(--auth-radius);
}
/* White surround = the QR code's quiet zone, which scanners need to find the code. */
#totp_qrcode {
    flex: none;
    padding: 0.8rem;
    background: var(--ox-white);
    border-radius: var(--auth-radius);
}
.totp_qr_text {
    flex: 1 1 22rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.totp_setup_key {
    padding: 0.6rem 1rem;
    font-family: var(--auth-font-mono);
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    word-break: break-all;      /* the key is one long unbroken string */
    background: var(--ox-white);
    border: 1px solid var(--auth-hairline);
    border-radius: var(--auth-radius);
}
.totp_confirm_row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}
.totp_confirm_row .auth_input {
    width: 14rem;
    font-family: var(--auth-font-mono);
    letter-spacing: 0.2em;
    text-align: center;
}
#totp_confirm_error {
    font-size: 1.3rem;
    color: var(--ox-signal-red);
}

/* Freshly generated recovery codes - shown once, so laid out to be easy to copy down. */
#recovery_codes_panel {
    margin-top: 1.2rem;
}
.recovery_codes_grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 2.4rem;
    padding: 1.4rem 1.8rem;
    font-family: var(--auth-font-mono);
    font-size: 1.4rem;
    background: var(--ox-blue-paler);
    border: 1px solid var(--auth-hairline);
    border-radius: var(--auth-radius);
}


/* ---------- Status line (#message-box) ----------------------------------------------------
 * The page's JS sets one of three classes. Restyled from the old floating coloured boxes to an
 * inline line with an icon, so the state never relies on colour alone:
 *   messagebox      - work in progress ("Validating...") - spinner
 *   messageboxok    - success - tick
 *   messageboxerror - failure - exclamation
 * Some JS paths add messageboxok/messageboxerror without removing messagebox first, so an
 * element can carry two of these at once - the ok/error rules come after and override the
 * spinner explicitly. */
#message-box,
#msgbox {
    flex: none;
}
.messagebox,
.messageboxok,
.messageboxerror {
    position: relative;
    min-height: 1.8rem;
    padding-left: 2.6rem;
    font-size: 1.4rem;
    line-height: 1.35;
}
.messagebox::before,
.messageboxok::before,
.messageboxerror::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.6rem;
    height: 1.6rem;
}
.messagebox {
    color: var(--ox-steel);
}
.messagebox::before {
    border: 2px solid var(--ox-blue-pale);
    border-top-color: var(--ox-green);
    border-radius: 50%;
    animation: auth_spin 900ms linear infinite;
}
.messageboxok {
    font-weight: 500;
    color: var(--ox-green-deep);
}
.messageboxok::before {
    border: 0;
    border-radius: 0;
    animation: none;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006654' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.5 2.5 5.5-5.5'/%3E%3C/svg%3E");
}
.messageboxerror {
    font-weight: 500;
    color: var(--ox-signal-red);
}
.messageboxerror::before {
    border: 0;
    border-radius: 0;
    animation: none;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C5283D' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6'/%3E%3Cpath d='M12 16.5v.5'/%3E%3C/svg%3E");
}
@keyframes auth_spin {
    to {
        transform: rotate(360deg);
    }
}


/* ---------- Narrow windows: brand panel becomes a band across the top ---------------------- */
@media (max-width: 820px) {
    .auth_shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
    }
    .auth_brand {
        flex-direction: row;
        align-items: center;
        padding: 1.2rem 2rem;
        background-size: 2.4rem 2.4rem;
    }
    .auth_brand_logo {
        max-height: 5rem;
        width: auto;
    }
    .auth_brand_foot {
        display: none;
    }
    .auth_task {
        padding: 2rem;
    }
}


/* ---------- Reduced motion ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .auth_row_chev {
        transition: none;
    }
    .messagebox::before {
        animation: none;
    }
}
