/* Warnoes OS v0.3.0 — login visual polish, isolated from admin modules */
.skip-link {
    position: fixed;
    z-index: 9999;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff;
    color: #1f2126;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
    transform: translateY(-160%);
    transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

.auth-body {
    min-height: 100svh;
    padding: clamp(18px, 4vw, 48px);
    background:
        radial-gradient(circle at 10% 12%, rgba(242, 182, 61, .18), transparent 28%),
        radial-gradient(circle at 92% 82%, rgba(220, 38, 38, .20), transparent 27%),
        linear-gradient(135deg, #090a0d 0%, #12141a 52%, #3f0e14 100%);
}
.auth-page { width: min(1180px, 100%); }
.login-card {
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, .84fr);
    gap: 18px;
    align-items: stretch;
}

.login-visual {
    min-height: 600px;
    padding: clamp(30px, 4vw, 52px);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 32px;
    background:
        radial-gradient(circle at 90% 7%, rgba(255, 255, 255, .25), transparent 23%),
        linear-gradient(157deg, #f6c94f 0%, #f2b63d 60%, #1f2126 60.2%, #111318 100%);
    box-shadow: 0 32px 80px rgba(0, 0, 0, .32);
    overflow: hidden;
}
.login-visual::before {
    background:
        linear-gradient(115deg, rgba(255, 255, 255, .18), transparent 32%),
        repeating-linear-gradient(135deg, transparent 0 22px, rgba(31, 33, 38, .025) 22px 23px);
}
.login-visual::after {
    width: 230px;
    height: 230px;
    right: -88px;
    bottom: 76px;
    background: rgba(220, 38, 38, .22);
    box-shadow: 0 0 100px rgba(220, 38, 38, .18);
}
.login-brand-row { align-items: center; }
.login-logo-panel img.logo-word { height: 44px; }
.login-status-pill {
    min-height: 32px;
    padding: 0 13px;
    color: #1f2126;
    background: rgba(255, 255, 255, .52);
    border-color: rgba(255, 255, 255, .62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42);
    font-family: var(--font-numeric, ui-monospace, monospace);
    font-size: 10px;
}
.login-copy { margin-top: clamp(24px, 5vh, 48px); }
.login-visual h1 {
    max-width: 610px;
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(46px, 5vw, 70px);
    line-height: .94 !important;
    letter-spacing: -.045em;
    text-shadow: 0 2px 0 rgba(31, 33, 38, .10);
}
.login-visual p {
    max-width: 585px;
    margin: 0;
    color: rgba(31, 33, 38, .82);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 650;
}
.login-tagline {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    color: rgba(31, 33, 38, .84);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.login-tagline span { display: inline-flex; align-items: center; gap: 9px; }
.login-tagline span:not(:last-child)::after {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #dc2626;
}
.login-highlights {
    position: relative;
    z-index: 2;
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 22px 0 0;
}
.login-highlights::before { display: none; }
.login-highlights div {
    min-height: 146px;
    padding: 18px 15px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 22px;
    background: rgba(19, 21, 26, .93);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .20);
    backdrop-filter: blur(10px);
    justify-content: flex-start;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.login-highlights div:hover {
    transform: translateY(-3px);
    border-color: rgba(242, 182, 61, .48);
    background: #1f2126;
}
.login-highlights .highlight-icon {
    width: 42px;
    height: 42px;
    margin: 0 0 14px;
    border-radius: 14px;
    background: linear-gradient(145deg, #f6ca54, #e6a91f);
    color: #1f2126;
    box-shadow: 0 9px 22px rgba(242, 182, 61, .20);
}
.login-highlights .highlight-icon svg { width: 20px; height: 20px; }
.login-highlights strong {
    width: 100%;
    max-width: none;
    margin: 0;
    color: #fff;
    text-align: left;
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: -.015em;
}
.login-highlights small {
    display: block !important;
    width: 100%;
    margin-top: 6px;
    color: rgba(255, 255, 255, .56);
    text-align: left;
    font-size: 10px;
    line-height: 1.45;
    font-weight: 650;
}

.login-form {
    min-height: 600px;
    padding: clamp(34px, 4vw, 52px);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 32px;
    background:
        radial-gradient(circle at 100% 0%, rgba(242, 182, 61, .16), transparent 28%),
        linear-gradient(155deg, rgba(255, 255, 255, .99), rgba(255, 251, 240, .97));
    box-shadow: 0 32px 80px rgba(0, 0, 0, .24);
}
.login-form::before {
    width: 180px;
    height: 180px;
    right: -92px;
    top: -90px;
    opacity: .55;
}
.login-form-head { margin-bottom: 26px; }
.login-form-head .page-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 0 0 12px;
    padding: 0 10px;
    border: 1px solid rgba(220, 38, 38, .18);
    border-radius: 999px;
    color: #b91c1c;
    background: rgba(220, 38, 38, .07);
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .09em;
}
.login-form h2 {
    margin: 0;
    color: #1f2126;
    font-size: clamp(38px, 4vw, 50px);
    line-height: .98 !important;
    letter-spacing: -.025em;
}
.login-form .muted {
    max-width: 390px;
    margin-top: 10px;
    color: #69707b;
    font-size: 13px;
    line-height: 1.62;
}
.field-label {
    margin-top: 17px;
    color: #30343b;
    font-size: 12px;
    font-weight: 800;
}
.field-shell {
    min-height: 58px;
    border: 1px solid rgba(31, 33, 38, .12);
    border-radius: 17px;
    background: rgba(255, 255, 255, .90);
    box-shadow: 0 5px 16px rgba(31, 33, 38, .035);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.field-shell:hover { border-color: rgba(31, 33, 38, .22); }
.field-shell:focus-within {
    transform: translateY(-1px);
    border-color: rgba(234, 179, 8, .96);
    box-shadow: 0 0 0 4px rgba(234, 179, 8, .14), 0 12px 28px rgba(31, 33, 38, .08);
}
.field-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 12px;
    background: #1f2126;
    color: #f2b63d;
    box-shadow: none;
}
.field-icon svg { width: 18px; height: 18px; }
.field-shell input { color: #1f2126; font-weight: 650; }
.field-shell input::placeholder { color: #9a9faa; opacity: 1; }
.password-toggle {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f6f1e5;
    border-color: rgba(31, 33, 38, .08);
}
.password-toggle:hover { background: #f2b63d; }
.login-meta-row { margin-top: 10px; }
.login-forgot {
    padding: 6px 2px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #8c3f16;
    font-size: 12px;
}
.login-forgot::after { content: '→'; transition: transform .18s ease; }
.login-forgot:hover { background: transparent; box-shadow: none; color: #b91c1c; }
.login-forgot:hover::after { transform: translateX(3px); }
.login-submit {
    min-height: 58px;
    margin-top: 14px;
    border: 1px solid rgba(31, 33, 38, .16);
    border-radius: 17px;
    background: linear-gradient(135deg, #1f2126 0%, #2c3038 58%, #4a1317 100%);
    color: #fff;
    box-shadow: 0 16px 32px rgba(31, 33, 38, .22);
    font-size: 14px;
    letter-spacing: .01em;
}
.login-submit::after {
    content: '→';
    margin-left: 8px;
    color: #f2b63d;
    font-size: 17px;
    transition: transform .18s ease;
}
.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(31, 33, 38, .28);
}
.login-submit:hover::after { transform: translateX(4px); }
.login-submit[aria-busy='true']::after { display: none; }
.login-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 10px;
    color: #a2a5ad;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(31, 33, 38, .09);
}
.login-note {
    margin: 0;
    color: #747985;
    font-size: 10px;
    line-height: 1.55;
    text-align: center;
}
.login-note a { color: #9b3a1c; font-weight: 800; }

@media (max-width: 900px) {
    .auth-body { padding: 12px; }
    .login-card { gap: 12px; }
    .login-visual,
    .login-form { min-height: auto; border-radius: 26px; }
    .login-visual { padding: 22px 20px; background: linear-gradient(152deg, #f6c94f 0%, #f2b63d 69%, #181b21 69.2%, #111318 100%); }
    .login-copy { margin-top: 24px; }
    .login-visual h1 { max-width: 560px; font-size: clamp(38px, 8vw, 56px); }
    .login-tagline { margin-top: 15px; flex-wrap: wrap; }
    .login-highlights { grid-template-columns: repeat(3, minmax(150px, 1fr)); padding-top: 20px; overflow-x: auto; }
    .login-highlights div { min-height: 132px; }
    .login-form { padding: 28px 24px; }
}

@media (max-width: 520px) {
    .login-brand-row { flex-direction: row; align-items: center; }
    .login-logo-panel img.logo-word { height: 31px; }
    .login-status-pill { min-height: 27px; padding: 0 9px; font-size: 8px; }
    .login-copy { margin-top: 20px; }
    .login-visual h1 { font-size: clamp(35px, 11vw, 46px); }
    .login-visual p { font-size: 12px; line-height: 1.62; }
    .login-tagline { font-size: 9px; gap: 6px; }
    .login-tagline span { gap: 6px; }
    .login-highlights { grid-template-columns: 1fr; overflow: visible; }
    .login-highlights div { min-height: 0; display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; align-items: center; padding: 13px; }
    .login-highlights .highlight-icon { grid-row: 1 / span 2; margin: 0; }
    .login-highlights strong,
    .login-highlights small { grid-column: 2; }
    .login-highlights strong { align-self: end; }
    .login-highlights small { align-self: start; margin-top: 2px; }
    .login-form { padding: 25px 19px; }
    .login-form h2 { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
    .skip-link,
    .login-highlights div,
    .login-submit,
    .login-submit::after,
    .login-forgot::after,
    .field-shell { transition: none !important; }
    .login-highlights div:hover,
    .login-submit:hover,
    .field-shell:focus-within { transform: none; }
}

/* ============================================================
   Warnoes OS v0.4.0 — "liquid gradient" live backdrop.
   Warnoes tones (yellow #f2b63d / red #c21e24 / cream / dark #1f2126),
   pure-CSS blobs so it costs ~0 CPU/memory and runs on the GPU
   compositor. The whole animation is ONE keyframe on ONE element.
   ============================================================ */
.auth-body {
    /* Additive: keep v0.3.0 gradient + padding from this stylesheet.
       Only add a stacking context so z-index:-1 on .auth-liquid stays
       scoped to this body (does not leak behind the rest of the app). */
    isolation: isolate;
}
.auth-liquid,
.auth-grain {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* Liquid blobs — one element, several soft radial gradients. The
   gradient edges are transparent, so no blur filter or extra paint layer
   is needed. Motion is transform-only and stays on the GPU compositor. */
.auth-liquid {
    background:
        radial-gradient(circle at 18% 22%, rgba(242, 182, 61, 0.42) 0%, transparent 38%),
        radial-gradient(circle at 82% 14%, rgba(194, 30, 36, 0.36) 0%, transparent 34%),
        radial-gradient(circle at 78% 86%, rgba(242, 182, 61, 0.32) 0%, transparent 37%),
        radial-gradient(circle at 12% 84%, rgba(194, 30, 36, 0.30) 0%, transparent 34%),
        radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.07) 0%, transparent 42%),
        linear-gradient(135deg, #12141a 0%, #1b1821 100%);
    background-size: 180% 180%;
    transform: translate3d(0, 0, 0) scale(1.15);
    will-change: transform;
    animation: liquid-drift 26s ease-in-out infinite alternate;
}

@keyframes liquid-drift {
    0%   { transform: translate3d(-3%, -3%, 0) scale(1.14) rotate(-3deg); }
    25%  { transform: translate3d(3%, -5%, 0) scale(1.16) rotate(0deg); }
    50%  { transform: translate3d(5%, 2%, 0) scale(1.13) rotate(3deg); }
    75%  { transform: translate3d(-4%, 4%, 0) scale(1.16) rotate(0deg); }
    100% { transform: translate3d(-2%, -1%, 0) scale(1.14) rotate(-2deg); }
}

/* Fine film grain over the liquid so it reads as premium print/media,
   not a flat CSS gradient. Tiny inline SVG feTurbulence — cheap, loaded
   once, no network. */
.auth-grain {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
    opacity: 0.5;
    mix-blend-mode: overlay;
}

/* Keep the login card readable above the liquid. */
.auth-page { position: relative; z-index: 1; }

@media (max-width: 900px) {
    .auth-liquid { background-size: 200% 200%; }
}

@media (max-width: 520px) {
    .auth-liquid { background-size: 220% 220%; }
    .auth-grain { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-liquid {
        animation: none;
        transform: translate3d(0, 0, 0) scale(1.15);
    }
}
