.auth-shell {
    --auth-blue: #245bdc;
    --auth-text: #14233e;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: none;
    background: #fff;
    color: var(--auth-text);
}
.auth-page {
    display: grid;
    grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
    min-height: inherit;
}
.auth-cover {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(18rem, 1fr) auto;
    padding: clamp(2rem, 4vw, 5rem);
    color: #fff;
    background: linear-gradient(150deg, #112653 0%, #1d43a4 56%, #193787 100%);
}
.auth-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("images/auth-pattern.png") center/cover;
    opacity: .48;
    mix-blend-mode: luminosity;
    pointer-events: none;
}
.auth-wordmark { display: flex; align-items: center; gap: .75rem; font-size: 1.25rem; font-weight: 750; letter-spacing: .055em; }
.auth-brandmark { display: inline-grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: .72rem; background: #fff; color: #244ea9; }
.auth-brandmark .ui-icon { font-size: 1.35rem; }
.auth-cover-title { position: relative; margin: 1rem 0 0; font-size: clamp(2.6rem, 4.6vw, 5rem); font-weight: 670; line-height: 1.01; letter-spacing: -.052em; }
.auth-art { align-self: center; justify-self: center; position: relative; width: min(91%, 30rem); aspect-ratio: 1.23; color: #3157b4; }
.auth-art-grid { position: absolute; inset: 8% -4% 0; opacity: .38; background: radial-gradient(#a9c5ff .9px, transparent 1px) 0 0 / 14px 14px; mask-image: radial-gradient(ellipse at center, #000 0 55%, transparent 76%); }
.auth-sheet { position: absolute; left: 22%; top: 7%; width: 54%; height: 79%; border-radius: 6.5% / 5%; border: 1px solid #d4e1ff; transform-origin: 55% 70%; }
.auth-sheet-back { transform: translate(-8%, 1%) rotate(-16deg); background: linear-gradient(145deg, #9ebfff, #7197ec); }
.auth-sheet-mid { transform: translate(-3%, 3%) rotate(-4deg); background: linear-gradient(145deg, #c9dfff, #a8c4fa); box-shadow: -3px 4px 8px #142e7622; }
.auth-sheet-front { transform: rotate(10deg); padding: 7% 6%; background: linear-gradient(145deg, #fff 12%, #f5f8ff); box-shadow: 0 20px 25px -12px #0a236b65; }
.auth-sheet-heading { display: flex; align-items: center; justify-content: space-between; }
.auth-doc-stamp { display:block; width: 19%; aspect-ratio: 1; background: #ccdcff; border-radius: 22%; position: relative; }
.auth-doc-stamp::after { content:""; position:absolute; inset: 28% 25%; background: linear-gradient(to right, #527bde 0 21%, transparent 21% 36%, #527bde 36% 60%, transparent 60% 75%, #527bde 75%); transform: skewY(-13deg); }
.auth-doc-title { width: 30%; height: 5px; background: #8ba8e6; border-radius: 5px; }
.auth-sheet-rules { display:grid; gap:5px; margin:15% 0 11%; }
.auth-sheet-rules i,.auth-sheet-table i,.auth-sheet-total {display:block; background:#dce6f8; border-radius:5px; height:4px;}
.auth-sheet-rules i:first-child {width:65%;height:7px;background:#667fac;margin-bottom:4px;}
.auth-sheet-rules i:nth-child(2) {width:84%;}
.auth-sheet-rules i:nth-child(3) {width:53%;}
.auth-sheet-table { background:#f1f5fc; border:1px solid #dce5f5; border-radius:5px; padding:7%; display:grid; gap:8px; }
.auth-sheet-table i { background:linear-gradient(to right,#bfd0ec 47%,transparent 47% 75%,#ccd9ee 75%); }
.auth-sheet-total { width: 35%; height: 6px; background: #809ac7; margin: 9% 0 0 auto; }
.auth-approval { position:absolute; display:grid; place-items:center; width:21%; aspect-ratio:1; right:9%; bottom:7%; border-radius:50%; border:3px solid #d4fbf0; box-shadow:0 9px 20px #10264f50,inset 0 0 0 5px #a4e4d0; background:#c7f1e0; color:#187656; font-size:clamp(1.3rem,2.55vw,2.8rem); transform:rotate(-8deg); }
.auth-approval i { display:block; border:solid currentColor; transform:rotate(-45deg); width: .96em; height: .52em; border-width:0 0 .14em .14em; margin-top:-.16em; }
.auth-entry { display:grid; align-items:center; justify-items:center; padding:3.5rem clamp(1.75rem,5.5vw,7.5rem); }
.auth-entry-inner { width:100%; max-width:27.5rem; }
.auth-entry h1 { margin:0; color:var(--auth-text); font-size:clamp(1.9rem,2.45vw,2.65rem); line-height:1.12; letter-spacing:-.045em; font-weight:720; }
.auth-intro {margin:.85rem 0 0; color:#50627d; font-size:1rem; line-height:1.55;}
.auth-form {display:grid; margin:2.1rem 0 0; gap:0;}
.auth-form label {margin:0 0 .5rem;color:#2b3d59;font-size:.9rem;font-weight:650;}
.auth-form input {width:100%; height:3.15rem; margin:0; border:1px solid #b9c7d8; border-radius:.65rem; padding:0 .9rem; background:#fff; color:#182a45; font:inherit; font-size:1rem; box-shadow:0 1px 2px #20344e09;}
.auth-form label:not(:first-of-type) {margin-top:1.15rem;}
.auth-form input::placeholder {color:#697c97;}
.auth-form input:focus-visible {outline:3px solid #dce8ff; outline-offset:1px;border-color:#3968d7;}
.auth-form input.auth-code {font-variant-numeric:tabular-nums;letter-spacing:.25em;}
.auth-primary {display:flex; align-items:center; justify-content:center; gap:.65rem; width:100%; min-height:3.15rem; margin-top:1.6rem; padding:.65rem 1rem; border:0; border-radius:.65rem; color:white; background:var(--auth-blue); font:inherit; font-weight:650; cursor:pointer; box-shadow:0 4px 9px #1f51bc26;}
.auth-primary:hover {background:#1c50c7;}
.auth-primary i, .auth-switch i {display:inline-block; position:relative; width:.95rem; height:1.5px; border-radius:1px; background:currentColor;}
.auth-primary i::after,.auth-switch i::after {content:"";position:absolute;right:0;top:50%;width:.4rem;height:.4rem;border:solid currentColor;border-width:1.5px 1.5px 0 0;transform:translateY(-50%) rotate(45deg);}
.auth-switch {margin-top:2rem;border-top:1px solid #dfe6f0;padding-top:1rem;}
.auth-switch a,.auth-reset button {display:inline-flex;align-items:center;gap:.6rem;min-height:2.75rem;color:#264faf;background:none;border:0;font:inherit;font-size:.9rem;font-weight:600;text-decoration:none;}
.auth-switch a:hover,.auth-reset button:hover {color:#163b91;background-color:#edf3ff;border-radius:4px;}
.auth-reset {margin:.45rem 0 0;}
.auth-reset button {padding:0;cursor:pointer;}
.auth-validation,.auth-notice {padding:.75rem 1rem;margin:1.1rem 0 0;border-radius:.6rem;font-size:.93rem;line-height:1.5;}
.auth-validation {background:#fff0ed;color:#923022;border:1px solid #efc7c1;}
.auth-notice {background:#e6f5ee;color:#206348;border:1px solid #b4ddcb;}
.auth-validation p {margin:0;}
@media(max-width:50em) {
    .auth-page {display:flex;flex-direction:column;}
    .auth-cover {padding:1.4rem clamp(1.3rem,6vw,3rem);display:flex;align-items:center;gap:1rem;}
    .auth-cover-title {font-size:.97rem;line-height:1.3;letter-spacing:0;margin:0;padding-left:1rem;border-left:1px solid #a4b6e875;font-weight:550;}
    .auth-art {display:none;}
    .auth-entry {flex:1; align-items:start; padding:clamp(2rem,9vh,5.5rem) clamp(1.25rem,6vw,3rem);}
    .auth-entry h1 {font-size:clamp(1.85rem,5vw,2.6rem);}
}

.auth-onboarding { margin: 1.2rem 0; padding: .85rem 1rem; border-left: 3px solid #7fa7fa; background: #f2f6ff; border-radius: .35rem; }
.auth-onboarding p { margin: .25rem 0 0; font-size: .92rem; color: #425674; }
.auth-onboarding a { font-weight: 650; }
.auth-onboarding a:is(:hover, :focus-visible) { background: #deebff; border-radius: 3px; }

.auth-demo { margin-top: 1.35rem; padding: 1rem; border: 1px solid #c5d6fb; border-radius: .7rem; background: #f5f8ff; }
.auth-demo h2 { margin: 0; font-size: 1.1rem; }
.auth-demo p { margin: .35rem 0 .8rem; color: #425674; font-size: .92rem; }
.demo-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .5rem; }
.demo-options button { display: grid; gap: .2rem; justify-content: start; text-align: left; width: 100%; min-height: 5rem; color: #2048a4; background: white; border-color: #cad9f3; }
.demo-options button:hover { border-color: #548bf3; }
.demo-options small, .demo-options span { color: #465776; font-weight: 500; }
.demo-options span { font-size: .75rem; }
