/**
 * Projet                    : MageStock
 * Logiciel                  : MageStock
 * Fichier                   : assets/css/auth-gateway.css
 * Rôle                      : Passerelle visuelle commune à la connexion et à la récupération.
 * Auteur                    : Régis KREMER
 * Version du fichier        : 1.2.0
 * Version générale          : 2.6.123
 * Lot                       : MAGESTOCK FOOTER MAGEKORP IDENTITY CONTACT1
 * Base requise              : MageStock 2.6.123
 * Création                  : 2026-07-25
 * Dernière modification     : 2026-07-30
 * Dépendances               : variables de assets/css/app.css
 * Données touchées          : aucune
 * Permissions               : aucune
 * Sécurité                  : aucune donnée sensible ; états focus et erreurs accessibles
 * Compatibilité             : navigateurs modernes, PC, smartphone et tablette
 *
 * Résumé :
 * - Conserve la structure 65/35 et construit un univers visuel directement lié aux stocks.
 * - Ajoute des aperçus de magasin, inventaire, mouvements, scanner et sécurité de compte.
 * - Corrige l’ancrage des actions intégrées aux champs de mot de passe.
 *
 * Historique :
 * - 2.6.119 — Création de la passerelle d’identité MageStock.
 * - 2.6.121 — Scène produit MageStock et correction des actions de mot de passe.
 * - 2.6.123 — Footer MageKorp public, logos officiels, lien contact et responsive complet.
 */

:root {
    --auth-brand-bg: #e8f2ff;
    --auth-brand-bg-2: #ecfbf5;
    --auth-form-bg: #ffffff;
    --auth-ink: #0f1f35;
    --auth-muted: #53657d;
    --auth-line: #c9d5e4;
    --auth-soft: #f2f6fb;
    --auth-blue: #2563eb;
    --auth-blue-deep: #1746a2;
    --auth-green: #16a34a;
    --auth-danger: #c62828;
    --auth-danger-bg: #fff3f3;
    --auth-success: #137a3d;
    --auth-success-bg: #eefbf3;
    --auth-focus: rgba(37, 99, 235, .18);
    --auth-control-height: 50px;
    --auth-stage-bg: rgba(9, 30, 59, .94);
    --auth-stage-surface: rgba(255, 255, 255, .085);
    --auth-stage-line: rgba(157, 195, 241, .2);
    --auth-stage-text: #f4f8ff;
    --auth-stage-muted: #a9bdd7;
    --auth-stage-accent: #4f8df7;
    --auth-stage-green: #42d68a;
    --auth-stage-warning: #ffc768;
}

[data-theme="dark"] {
    --auth-brand-bg: #101e35;
    --auth-brand-bg-2: #0d2a29;
    --auth-form-bg: #0b1320;
    --auth-ink: #f5f8fc;
    --auth-muted: #9baac0;
    --auth-line: #314159;
    --auth-soft: #141f30;
    --auth-blue: #60a5fa;
    --auth-blue-deep: #3b82f6;
    --auth-green: #4ade80;
    --auth-danger: #ff8e8e;
    --auth-danger-bg: #311a20;
    --auth-success: #78e39d;
    --auth-success-bg: #153023;
    --auth-focus: rgba(96, 165, 250, .24);
    --auth-stage-bg: rgba(4, 15, 30, .94);
    --auth-stage-surface: rgba(255, 255, 255, .075);
    --auth-stage-line: rgba(135, 172, 220, .2);
    --auth-stage-text: #f4f8ff;
    --auth-stage-muted: #9eb2cc;
    --auth-stage-accent: #60a5fa;
    --auth-stage-green: #4ade80;
    --auth-stage-warning: #fbbf24;
}

* { box-sizing: border-box; }

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--auth-form-bg);
}

body.auth-page {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    color: var(--auth-ink);
    font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-gateway {
    display: grid;
    grid-template-columns: minmax(0, 65fr) minmax(430px, 35fr);
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--auth-form-bg);
}

.auth-brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    padding: max(48px, env(safe-area-inset-top)) clamp(46px, 6vw, 96px) max(48px, env(safe-area-inset-bottom));
    background:
        linear-gradient(color-mix(in srgb, var(--auth-blue) 5%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--auth-blue) 5%, transparent) 1px, transparent 1px),
        radial-gradient(circle at 12% 20%, color-mix(in srgb, var(--auth-blue) 18%, transparent), transparent 31%),
        radial-gradient(circle at 82% 84%, color-mix(in srgb, var(--auth-green) 16%, transparent), transparent 34%),
        linear-gradient(138deg, var(--auth-brand-bg), var(--auth-brand-bg-2));
    background-size: 42px 42px, 42px 42px, auto, auto, auto;
    border-inline-end: 1px solid color-mix(in srgb, var(--auth-line) 70%, transparent);
}

.auth-brand-panel::before,
.auth-brand-panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border: 1px solid color-mix(in srgb, var(--auth-blue) 20%, transparent);
    transform: rotate(45deg);
}

.auth-brand-panel::before {
    width: min(34vw, 520px);
    height: min(34vw, 520px);
    top: -26%;
    right: -13%;
}

.auth-brand-panel::after {
    width: min(19vw, 300px);
    height: min(19vw, 300px);
    bottom: -17%;
    left: -8%;
    border-color: color-mix(in srgb, var(--auth-green) 20%, transparent);
}

.auth-brand-content,
.auth-brand-shell {
    position: relative;
    z-index: 1;
}

.auth-brand-shell {
    display: grid;
    grid-template-columns: minmax(300px, .88fr) minmax(390px, 1.12fr);
    gap: clamp(34px, 4vw, 68px);
    align-items: center;
    width: min(1040px, 100%);
    margin: 0 auto;
}

.auth-brand-copy { min-width: 0; }

.auth-wordmark {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.auth-wordmark__logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 8px 18px rgba(20, 64, 126, .16));
}

.auth-wordmark__name {
    display: block;
    margin: 0;
    color: var(--auth-ink);
    font-size: clamp(31px, 2.45vw, 46px);
    font-weight: 850;
    letter-spacing: -.045em;
    line-height: .98;
}

.auth-wordmark__strapline {
    display: block;
    margin-top: 7px;
    color: var(--auth-blue-deep);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

[data-theme="dark"] .auth-wordmark__strapline { color: var(--auth-blue); }

.auth-brand-lead {
    max-width: 520px;
    margin: 0 0 18px;
    color: var(--auth-ink);
    font-size: clamp(17px, 1.18vw, 21px);
    font-weight: 650;
    line-height: 1.55;
}

.auth-brand-list {
    display: grid;
    gap: 12px;
    max-width: 590px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.auth-brand-list li {
    position: relative;
    padding-inline-start: 28px;
    color: var(--auth-ink);
    font-size: 14px;
    line-height: 1.45;
}

.auth-brand-list li::before {
    content: "";
    position: absolute;
    top: .28em;
    inset-inline-start: 1px;
    width: 13px;
    height: 7px;
    border-inline-start: 2px solid var(--auth-green);
    border-bottom: 2px solid var(--auth-green);
    transform: rotate(-45deg);
}

html[dir="rtl"] .auth-brand-list li::before { transform: rotate(45deg); }

.auth-brand-detail-list {
    display: grid;
    gap: 10px;
    max-width: 610px;
    margin-top: 22px;
}

.auth-brand-detail {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.auth-brand-detail__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--auth-blue);
    border: 1px solid color-mix(in srgb, var(--auth-blue) 32%, var(--auth-line));
    background: color-mix(in srgb, var(--auth-form-bg) 58%, transparent);
}

.auth-brand-detail__icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-brand-detail strong {
    display: block;
    margin-bottom: 2px;
    color: var(--auth-ink);
    font-size: 14px;
}

.auth-brand-detail span {
    display: block;
    color: var(--auth-muted);
    font-size: 12px;
    line-height: 1.45;
}

.auth-brand-foot {
    margin-top: 24px;
    color: var(--auth-muted);
    font-size: 12px;
    line-height: 1.5;
}

/* Scène produit MageStock : représentation locale et décorative, sans donnée métier. */
.auth-product-stage {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(133, 177, 232, .25);
    background: var(--auth-stage-bg);
    color: var(--auth-stage-text);
    box-shadow: 0 28px 70px rgba(11, 34, 68, .23);
}

.auth-product-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(79, 141, 247, .12), transparent 44%, rgba(66, 214, 138, .08));
}

.auth-product-stage__grid {
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image: linear-gradient(var(--auth-stage-line) 1px, transparent 1px), linear-gradient(90deg, var(--auth-stage-line) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.auth-stage-head,
.auth-stage-metrics,
.auth-stage-warehouse,
.auth-stage-movement,
.auth-security-visual,
.auth-stage-security-list {
    position: relative;
    z-index: 1;
}

.auth-stage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--auth-stage-line);
}

.auth-stage-head strong { display: block; margin-top: 4px; font-size: 17px; letter-spacing: -.02em; }
.auth-stage-eyebrow { color: var(--auth-stage-muted); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.auth-stage-status { display: inline-flex; align-items: center; gap: 7px; color: var(--auth-stage-green); font-size: 10px; font-weight: 800; }
.auth-stage-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px rgba(66, 214, 138, .1); }

.auth-stage-metrics {
    display: grid;
    grid-template-columns: 1.08fr .96fr .82fr;
    gap: 9px;
    margin-top: 14px;
}

.auth-stage-metric {
    display: flex;
    min-width: 0;
    min-height: 82px;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid var(--auth-stage-line);
    background: var(--auth-stage-surface);
}

.auth-stage-metric > span:not(.auth-stage-metric__icon):not(.auth-stage-progress) { color: var(--auth-stage-muted); font-size: 9px; line-height: 1.25; }
.auth-stage-metric strong { font-size: 16px; line-height: 1.1; }
.auth-stage-metric--primary strong { font-size: 25px; }
.auth-stage-metric--alert strong { color: var(--auth-stage-warning); }
.auth-stage-metric__icon { align-self: flex-end; width: 22px; height: 22px; color: var(--auth-stage-accent); }
.auth-stage-metric__icon svg, .auth-stage-movement__icon svg, .auth-security-visual__shield svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.auth-stage-progress { display: block; height: 4px; overflow: hidden; background: rgba(255,255,255,.08); }
.auth-stage-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--auth-stage-accent), var(--auth-stage-green)); }

.auth-stage-warehouse {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    min-height: 135px;
    margin-top: 12px;
    padding: 14px;
    overflow: hidden;
    border: 1px solid var(--auth-stage-line);
    background: rgba(0, 0, 0, .12);
    perspective: 500px;
}

.auth-stage-rack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(157, 195, 241, .24);
    background: rgba(18, 49, 84, .6);
    transform: skewY(-1.5deg);
}
.auth-stage-rack--middle { transform: translateY(8px); }
.auth-stage-rack i { border: 1px solid rgba(140, 183, 234, .23); background: linear-gradient(135deg, rgba(79, 141, 247, .28), rgba(66, 214, 138, .1)); }
.auth-stage-rack i:nth-child(3n+2) { background: linear-gradient(135deg, rgba(255, 199, 104, .24), rgba(79, 141, 247, .1)); }
.auth-stage-scanline { position: absolute; z-index: 2; left: 7%; right: 7%; top: 53%; height: 2px; background: linear-gradient(90deg, transparent, #61a8ff, transparent); box-shadow: 0 0 14px rgba(97,168,255,.85); }

.auth-stage-movement {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
    padding: 11px 12px;
    border: 1px solid var(--auth-stage-line);
    background: var(--auth-stage-surface);
}
.auth-stage-movement__icon { display: grid; place-items: center; width: 30px; height: 30px; padding: 6px; color: var(--auth-stage-green); border: 1px solid rgba(66, 214, 138, .28); }
.auth-stage-movement small { display: block; color: var(--auth-stage-muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.auth-stage-movement strong { display: block; margin-top: 2px; font-size: 11px; }
.auth-stage-movement em { color: var(--auth-stage-accent); font-size: 10px; font-style: normal; font-weight: 800; }

.auth-security-visual {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 18px;
    align-items: center;
    min-height: 118px;
    margin-top: 14px;
    padding: 16px;
    border: 1px solid var(--auth-stage-line);
    background: rgba(0,0,0,.12);
}
.auth-security-visual__shield { display: grid; place-items: center; width: 72px; height: 72px; padding: 17px; color: var(--auth-stage-green); border: 1px solid rgba(66,214,138,.35); background: rgba(66,214,138,.08); transform: rotate(45deg); }
.auth-security-visual__shield svg { transform: rotate(-45deg); }
.auth-security-visual__lines { display: grid; gap: 10px; }
.auth-security-visual__lines i { display: block; height: 8px; background: linear-gradient(90deg, rgba(79,141,247,.52), rgba(79,141,247,.08)); }
.auth-security-visual__lines i:nth-child(2) { width: 76%; }
.auth-security-visual__lines i:nth-child(3) { width: 56%; }
.auth-stage-security-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 12px; }
.auth-stage-security-list article { min-width: 0; padding: 11px; border: 1px solid var(--auth-stage-line); background: var(--auth-stage-surface); }
.auth-stage-security-list span { display: block; color: var(--auth-stage-muted); font-size: 9px; }
.auth-stage-security-list strong { display: block; margin-top: 6px; font-size: 11px; line-height: 1.25; }
.auth-stage-movement--security .auth-stage-movement__icon { color: var(--auth-stage-accent); border-color: rgba(79,141,247,.3); }

.auth-form-panel {
    position: relative;
    min-width: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--auth-form-bg);
    scrollbar-gutter: stable;
}

.auth-form-panel__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(620px, 100%);
    min-height: 100%;
    margin: 0 auto;
    padding: max(82px, calc(env(safe-area-inset-top) + 60px)) clamp(38px, 3.2vw, 56px) max(48px, calc(env(safe-area-inset-bottom) + 30px));
}

.auth-toolbar {
    position: fixed;
    z-index: 20;
    top: max(14px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    display: flex;
    align-items: center;
    gap: 8px;
}

html[dir="rtl"] .auth-toolbar {
    right: auto;
    left: max(16px, env(safe-area-inset-left));
}

.auth-toolbar select,
.auth-toolbar button {
    height: 40px;
    border: 1px solid var(--auth-line);
    border-radius: 2px;
    background: color-mix(in srgb, var(--auth-form-bg) 92%, transparent);
    color: var(--auth-ink);
    font: 700 12px/1 "DM Sans", sans-serif;
}

.auth-toolbar select {
    max-width: 162px;
    padding: 0 34px 0 10px;
}

.auth-toolbar button {
    display: grid;
    place-items: center;
    width: 40px;
    padding: 0;
    cursor: pointer;
}

.auth-toolbar button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-kicker {
    margin: 0 0 8px;
    color: var(--auth-blue);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.auth-title {
    margin: 0;
    color: var(--auth-ink);
    font-size: clamp(30px, 2.3vw, 42px);
    font-weight: 850;
    letter-spacing: -.045em;
    line-height: 1.06;
}

.auth-intro {
    margin: 12px 0 22px;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.55;
}

.auth-alert {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--auth-danger) 42%, var(--auth-line));
    border-inline-start: 3px solid var(--auth-danger);
    background: var(--auth-danger-bg);
    color: var(--auth-danger);
    font-size: 12px;
    line-height: 1.48;
}

.auth-alert--success {
    border-color: color-mix(in srgb, var(--auth-success) 38%, var(--auth-line));
    border-inline-start-color: var(--auth-success);
    background: var(--auth-success-bg);
    color: var(--auth-success);
}

.auth-alert svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-field {
    display: block;
    margin-bottom: 13px;
}

.auth-field__label {
    display: block;
    margin-bottom: 6px;
    color: var(--auth-ink);
    font-size: 12px;
    font-weight: 750;
}

.auth-field__hint {
    display: block;
    margin-top: 6px;
    color: var(--auth-muted);
    font-size: 11px;
    line-height: 1.4;
}

.auth-input-wrap {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    isolation: isolate;
}

.auth-input {
    display: block;
    width: 100%;
    min-height: var(--auth-control-height);
    padding: 11px 13px;
    border: 1px solid #8fa1b8;
    border-radius: 2px;
    outline: 0;
    background: var(--auth-form-bg);
    color: var(--auth-ink);
    font: 500 16px/1.35 "DM Sans", sans-serif;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

[data-theme="dark"] .auth-input { border-color: #4a5b72; }

.auth-input:focus {
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 3px var(--auth-focus);
}

.auth-input[aria-invalid="true"] {
    border-color: var(--auth-danger);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--auth-danger) 14%, transparent);
}

.auth-input--with-action { padding-inline-end: 52px; }

.auth-input-action {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 8px;
    left: auto;
    bottom: auto;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 2px;
    background: transparent;
    color: var(--auth-muted);
    cursor: pointer;
}

html[dir="rtl"] .auth-input-action {
    right: auto;
    left: 8px;
}

.auth-input-action:hover,
.auth-input-action:focus-visible {
    border-color: var(--auth-line);
    background: var(--auth-soft);
    color: var(--auth-blue-deep);
    outline: 0;
}

[data-theme="dark"] .auth-input-action:hover,
[data-theme="dark"] .auth-input-action:focus-visible { color: var(--auth-blue); }

.auth-input-action svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    padding: 11px 16px;
    border: 1px solid var(--auth-blue-deep);
    border-radius: 2px;
    background: linear-gradient(105deg, var(--auth-blue-deep), var(--auth-blue));
    color: #fff;
    font: 800 13px/1.2 "DM Sans", sans-serif;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(27, 78, 164, .18);
    transition: filter .15s ease, transform .08s ease;
}

.auth-submit:hover { filter: brightness(1.06); }
.auth-submit:active { transform: translateY(1px); }
.auth-submit:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }

.auth-submit svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--auth-line);
}

.auth-links a {
    color: var(--auth-blue-deep);
    font-size: 11px;
    font-weight: 650;
    text-underline-offset: 3px;
}

[data-theme="dark"] .auth-links a { color: var(--auth-blue); }

.auth-security-note {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 9px;
    margin-top: 13px;
    padding: 11px 12px;
    border: 1px solid var(--auth-line);
    border-inline-start: 3px solid var(--auth-blue);
    background: var(--auth-soft);
    color: var(--auth-muted);
    font-size: 11px;
    line-height: 1.45;
}

.auth-security-note svg {
    width: 17px;
    height: 17px;
    color: var(--auth-blue);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-policy {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    margin: 9px 0 2px;
    padding: 12px;
    border: 1px solid var(--auth-line);
    border-inline-start: 3px solid var(--auth-blue);
    background: var(--auth-soft);
}

.auth-policy__heading span {
    display: block;
    color: var(--auth-blue);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.auth-policy__heading strong {
    display: block;
    margin-top: 3px;
    color: var(--auth-ink);
    font-size: 14px;
    line-height: 1.15;
}

.auth-policy__rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-policy__rules li {
    position: relative;
    padding-inline-start: 19px;
    color: var(--auth-muted);
    font-size: 10px;
    line-height: 1.35;
}

.auth-policy__rules li::before {
    content: "○";
    position: absolute;
    inset-inline-start: 0;
    top: -.05em;
    color: var(--auth-muted);
    font-weight: 900;
}

.auth-policy__rules li.is-valid {
    color: var(--auth-success);
}

.auth-policy__rules li.is-valid::before { content: "✓"; color: var(--auth-success); }
.auth-policy__rules li.is-invalid { color: var(--auth-danger); }
.auth-policy__rules li.is-invalid::before { content: "×"; color: var(--auth-danger); }

.auth-policy__status {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid var(--auth-line);
    color: var(--auth-muted);
    font-size: 10px;
}

.auth-page-footer {
    margin-top: 16px;
    color: var(--auth-muted);
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
}

.auth-page-footer a { color: inherit; text-underline-offset: 3px; }

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 1420px) {
    .auth-brand-shell { grid-template-columns: minmax(270px, .82fr) minmax(350px, 1.18fr); gap: 30px; }
    .auth-stage-metric { min-height: 76px; padding: 10px; }
    .auth-stage-warehouse { min-height: 120px; }
}

@media (max-width: 1180px) {
    .auth-gateway { grid-template-columns: minmax(0, 56fr) minmax(420px, 44fr); }
    .auth-brand-panel { padding-inline: clamp(32px, 4.5vw, 58px); }
    .auth-brand-shell { grid-template-columns: 1fr; gap: 26px; }
    .auth-brand-copy { max-width: 540px; }
    .auth-product-stage { max-width: 540px; }
    .auth-brand-list { margin-top: 18px; }
    .auth-stage-warehouse { min-height: 108px; }
}

@media (max-width: 820px) {
    body.auth-page { overflow: hidden; }
    .auth-gateway {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(196px, 34vh) minmax(0, 1fr);
    }
    .auth-brand-panel {
        align-items: center;
        padding: max(30px, env(safe-area-inset-top)) 24px 24px;
        border-inline-end: 0;
        border-bottom: 1px solid var(--auth-line);
    }
    .auth-brand-content,
    .auth-brand-shell { width: 100%; }
    .auth-brand-shell { display: block; }
    .auth-product-stage { display: none; }
    .auth-wordmark { margin-bottom: 12px; }
    .auth-wordmark__logo { width: 48px; height: 48px; }
    .auth-wordmark__name { font-size: 30px; }
    .auth-brand-lead { margin-bottom: 0; font-size: 14px; line-height: 1.4; }
    .auth-brand-list,
    .auth-brand-detail-list { display: none; }
    .auth-brand-foot { margin-top: 10px; font-size: 10px; }
    .auth-form-panel__inner {
        justify-content: flex-start;
        width: 100%;
        min-height: 100%;
        padding: 62px 22px max(30px, calc(env(safe-area-inset-bottom) + 18px));
    }
    .auth-toolbar { position: absolute; }
    .auth-title { font-size: 30px; }
}

@media (max-width: 560px) {
    .auth-gateway { grid-template-rows: minmax(166px, 28vh) minmax(0, 1fr); }
    .auth-brand-panel { padding: max(22px, env(safe-area-inset-top)) 18px 18px; }
    .auth-wordmark { gap: 11px; }
    .auth-wordmark__logo { width: 42px; height: 42px; }
    .auth-wordmark__name { font-size: 26px; }
    .auth-wordmark__strapline { font-size: 9px; }
    .auth-brand-lead { font-size: 12px; }
    .auth-form-panel__inner { padding-inline: 16px; }
    .auth-row { grid-template-columns: 1fr; gap: 0; }
    .auth-policy { grid-template-columns: 1fr; }
    .auth-policy__rules { grid-template-columns: 1fr; }
    .auth-links { flex-direction: column; align-items: flex-start; gap: 9px; }
    .auth-toolbar select { max-width: 130px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}


/* MAGESTOCK FOOTER MAGEKORP IDENTITY CONTACT1 */
.auth-page-footer {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid var(--auth-line);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    color: var(--auth-muted);
    font-size: 10px;
    line-height: 1.45;
    text-align: left;
}
.auth-page-footer__brand {
    width: 104px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 7px;
    border: 1px solid var(--auth-line);
    border-radius: 4px;
    background: #f8fafc;
}
.auth-page-footer__brand img {
    display: block;
    width: 92px;
    height: auto;
    max-height: 23px;
    object-fit: contain;
}
.auth-page-footer__brand:hover,
.auth-page-footer__brand:focus-visible {
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 3px var(--auth-focus);
    outline: none;
}
.auth-page-footer__meta {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 2px 6px;
}
.auth-page-footer__meta strong { color: var(--auth-ink); }
.auth-page-footer__meta a {
    color: var(--auth-blue-deep);
    font-weight: 700;
    text-decoration: none;
    text-underline-offset: 3px;
}
.auth-page-footer__meta a:hover,
.auth-page-footer__meta a:focus-visible { text-decoration: underline; }
.auth-page-footer__version {
    margin-left: -2px;
    font-size: 9px;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

@media (max-width: 640px) {
    .auth-page-footer {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 9px;
        margin-top: 14px;
        padding-top: 10px;
    }
    .auth-page-footer__brand {
        width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 4px;
    }
    .auth-page-footer__brand img {
        width: 34px;
        max-height: 29px;
    }
    .auth-page-footer__meta {
        gap: 2px 5px;
        font-size: 10px;
    }
}

