:root {
    color-scheme: light;
    --brand-red: #e62f36;
    --brand-red-deep: #b91720;
    --brand-yellow: #f2be37;
    --brand-blue: #1d82b8;
    --page: #f4f6f8;
    --surface: #ffffff;
    --surface-soft: #f8fafb;
    --field: #f7f9fb;
    --field-focus: #ffffff;
    --text: #16212c;
    --text-soft: #596877;
    --text-muted: #8794a0;
    --border: #dfe6eb;
    --border-strong: #cbd6de;
    --success: #147d55;
    --success-soft: #edf9f4;
    --success-border: #c8eadc;
    --danger: #bb2931;
    --danger-soft: #fff0f1;
    --danger-border: #f0c8cb;
    --focus: rgba(33, 142, 196, 0.2);
    --ease: cubic-bezier(.2,.75,.2,1);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --page: #07111a;
    --surface: #0d1a25;
    --surface-soft: #101f2b;
    --field: #122231;
    --field-focus: #162a3a;
    --text: #f2f6f8;
    --text-soft: #a9b6c0;
    --text-muted: #788894;
    --border: #203241;
    --border-strong: #2d4354;
    --success: #69d6a7;
    --success-soft: rgba(27, 126, 83, .15);
    --success-border: rgba(105, 214, 167, .2);
    --danger: #ff8f96;
    --danger-soft: rgba(201, 39, 49, .14);
    --danger-border: rgba(255, 143, 150, .2);
    --focus: rgba(49, 159, 213, .2);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--page); }
body {
    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    background: var(--page);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 100;
    padding: .7rem 1rem;
    border-radius: .7rem;
    background: #fff;
    color: #111;
    font-weight: 750;
    text-decoration: none;
    transform: translateY(-180%);
    transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.login-shell {
    display: grid;
    grid-template-columns: minmax(38rem, 1.16fr) minmax(31rem, .84fr);
    min-height: 100vh;
    min-height: 100dvh;
}

/* =========================================================
   BRAND / 3D STAGE
========================================================= */
.brand-stage {
    --mx: 0px;
    --my: 0px;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    padding: clamp(1.8rem, 3vw, 3.2rem) clamp(2.2rem, 4.2vw, 5.4rem);
    isolation: isolate;
    background:
        radial-gradient(circle at 12% 4%, rgba(46, 151, 197, .12), transparent 26rem),
        radial-gradient(circle at 82% 88%, rgba(222, 39, 47, .13), transparent 28rem),
        linear-gradient(145deg, #071723 0%, #06131e 50%, #040d14 100%);
    color: #fff;
}
.brand-stage::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: linear-gradient(90deg, transparent 70%, rgba(255,255,255,.025));
    pointer-events: none;
}
.stage-noise {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .065;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}
.stage-grid {
    position: absolute;
    inset: 0;
    z-index: -3;
    opacity: .12;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 5rem 5rem;
    mask-image: linear-gradient(125deg, rgba(0,0,0,.72), transparent 78%);
}
.stage-light {
    position: absolute;
    z-index: -1;
    width: 34rem;
    height: 34rem;
    border-radius: 50%;
    filter: blur(18px);
    pointer-events: none;
    opacity: .68;
}
.stage-light--top {
    top: -19rem;
    left: 24%;
    background: radial-gradient(circle, rgba(51, 163, 208, .24), transparent 68%);
}
.stage-light--bottom {
    right: -15rem;
    bottom: -19rem;
    background: radial-gradient(circle, rgba(232, 45, 54, .26), transparent 68%);
}

.brand-header,
.brand-footer {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand-lockup { display: flex; align-items: center; gap: .85rem; }
.brand-mark {
    position: relative;
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.14);
}
.brand-mark__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brand-mark__image--dark { opacity: 0; }
html[data-theme="dark"] .brand-mark__image--light { opacity: 0; }
html[data-theme="dark"] .brand-mark__image--dark { opacity: 1; }
.brand-lockup__copy { display: grid; line-height: 1.08; }
.brand-lockup__copy strong { font-size: .92rem; letter-spacing: -.015em; }
.brand-lockup__copy span { margin-top: .23rem; color: rgba(255,255,255,.5); font-size: .68rem; letter-spacing: .035em; }
.brand-status {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .48rem .7rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    background: rgba(255,255,255,.035);
    color: rgba(255,255,255,.65);
    font-size: .68rem;
    font-weight: 650;
    backdrop-filter: blur(12px);
}
.brand-status i { width: .4rem; height: .4rem; border-radius: 50%; background: #67d5a6; box-shadow: 0 0 .7rem rgba(103,213,166,.6); }

.brand-main {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(18rem, .74fr) minmax(28rem, 1.26fr);
    gap: clamp(1.2rem, 2vw, 2.8rem);
    align-items: center;
    flex: 1;
    min-height: 0;
    padding: clamp(2.2rem, 5.2vh, 4.6rem) 0 clamp(2rem, 4vh, 3.5rem);
}
.brand-copy { position: relative; z-index: 10; max-width: 33rem; }
.brand-kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--brand-yellow);
    font-size: .72rem;
    font-weight: 820;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.brand-kicker::before { width: 1.8rem; height: 2px; content: ""; background: currentColor; border-radius: 999px; }
.brand-copy h1 {
    margin: 1.15rem 0 1rem;
    max-width: 31rem;
    font-size: clamp(2.65rem, 4.25vw, 5rem);
    line-height: .98;
    letter-spacing: -.058em;
    font-weight: 790;
    text-wrap: balance;
}
.brand-copy h1 span { color: rgba(255,255,255,.56); font-weight: 680; }
.brand-copy p {
    max-width: 30rem;
    margin: 0;
    color: rgba(255,255,255,.62);
    font-size: clamp(.92rem, 1.05vw, 1.04rem);
    line-height: 1.72;
}

.scene-wrap {
    position: relative;
    width: min(100%, 44rem);
    min-height: clamp(30rem, 63vh, 43rem);
    perspective: 1500px;
    justify-self: end;
    transform-style: preserve-3d;
}
.scene-shadow {
    position: absolute;
    left: 13%;
    right: 4%;
    bottom: 5%;
    height: 12%;
    border-radius: 50%;
    background: rgba(0,0,0,.5);
    filter: blur(2.2rem);
    transform: rotate(-8deg);
}
.scene {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: rotateX(2deg) rotateY(-8deg) translate3d(var(--mx), var(--my), 0);
    transition: transform 160ms ease-out;
}
.scene-backplate {
    position: absolute;
    width: 78%;
    height: 61%;
    top: 18%;
    left: 12%;
    border-radius: 2.2rem;
    background: linear-gradient(145deg, rgba(31, 91, 121, .12), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.07);
    transform: translateZ(-90px) rotateZ(-4deg);
    box-shadow: 0 40px 90px rgba(0,0,0,.28);
}

.dashboard-object {
    position: absolute;
    top: 16%;
    left: 8%;
    width: 82%;
    height: 62%;
    transform-style: preserve-3d;
    transform: translateZ(42px) rotateZ(-2.4deg);
}
.dash-depth {
    position: absolute;
    inset: 0;
    border-radius: 1.75rem;
    border: 1px solid rgba(255,255,255,.055);
    background: #07131e;
}
.dash-depth--one { transform: translate3d(18px, 18px, -20px); opacity: .9; }
.dash-depth--two { transform: translate3d(9px, 9px, -10px); background: #0a1823; }
.dash-panel {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 1.75rem;
    background: linear-gradient(145deg, #0d1c28, #091620 62%, #08131d);
    box-shadow: 0 38px 80px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.05);
}
.dash-panel::before {
    position: absolute;
    top: -8rem;
    right: -5rem;
    width: 18rem;
    height: 18rem;
    content: "";
    border-radius: 50%;
    background: radial-gradient(circle, rgba(48, 155, 203, .12), transparent 70%);
}
.dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.25rem;
    padding: 0 1.35rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.dash-topbar__left { display: flex; align-items: center; gap: .75rem; }
.dash-logo-dot { width: 1.7rem; height: 1.7rem; border-radius: .6rem; background: linear-gradient(145deg, var(--brand-red), #9c1018); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.dash-topbar__left div { display: grid; line-height: 1.1; }
.dash-topbar__left strong { font-size: .76rem; }
.dash-topbar__left small { margin-top: .24rem; color: rgba(255,255,255,.42); font-size: .59rem; }
.dash-chip { padding: .35rem .55rem; border-radius: 999px; background: rgba(99,211,165,.08); border: 1px solid rgba(99,211,165,.14); color: #72dbae; font-size: .58rem; font-weight: 760; }
.dash-metrics { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: .65rem; padding: 1rem 1.2rem .7rem; }
.dash-metric { padding: .8rem .82rem; border-radius: .95rem; border: 1px solid rgba(255,255,255,.065); background: rgba(255,255,255,.025); }
.dash-metric--main { background: linear-gradient(145deg, rgba(239,55,62,.11), rgba(255,255,255,.025)); border-color: rgba(239,55,62,.12); }
.dash-metric span, .dash-metric small { display: block; }
.dash-metric span { color: rgba(255,255,255,.45); font-size: .55rem; text-transform: uppercase; letter-spacing: .07em; }
.dash-metric strong { display: block; margin-top: .35rem; color: #fff; font-size: clamp(.92rem, 1.35vw, 1.2rem); letter-spacing: -.03em; }
.dash-metric small { margin-top: .25rem; color: rgba(255,255,255,.37); font-size: .5rem; }
.dash-chart { position: relative; height: calc(100% - 9.3rem); margin: .35rem 1.2rem 1rem; padding: .9rem .95rem .7rem; overflow: hidden; border-radius: 1.05rem; background: rgba(0,0,0,.16); border: 1px solid rgba(255,255,255,.055); }
.dash-chart__head { position: relative; z-index: 4; display: flex; align-items: start; justify-content: space-between; }
.dash-chart__head div { display: grid; }
.dash-chart__head span { color: rgba(255,255,255,.4); font-size: .55rem; }
.dash-chart__head strong { margin-top: .15rem; font-size: .7rem; }
.dash-chart__gain { color: #6bd9aa !important; font-weight: 780; }
.chart-grid { position: absolute; inset: 3.5rem .95rem 1.8rem; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px); background-size: 100% 25%; }
.chart-line { position: absolute; z-index: 3; left: .95rem; right: .95rem; bottom: 1.8rem; width: calc(100% - 1.9rem); height: calc(100% - 5rem); filter: drop-shadow(0 5px 9px rgba(225,47,54,.18)); }
.chart-days { position: absolute; z-index: 4; right: .95rem; bottom: .48rem; left: .95rem; display: grid; grid-template-columns: repeat(7,1fr); color: rgba(255,255,255,.26); font-size: .48rem; text-align: center; }

.float-card {
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 9.7rem;
    padding: .72rem .82rem;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 1rem;
    background: rgba(14, 30, 42, .88);
    box-shadow: 0 20px 42px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.05);
    backdrop-filter: blur(15px);
    transform-style: preserve-3d;
}
.float-card div { display: grid; }
.float-card small { color: rgba(255,255,255,.42); font-size: .52rem; }
.float-card strong { margin-top: .12rem; color: #fff; font-size: .82rem; letter-spacing: -.02em; }
.float-card div > span { margin-top: .11rem; color: rgba(255,255,255,.42); font-size: .5rem; }
.float-card__icon { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: .7rem; background: rgba(103,213,166,.1); color: #68d7a7; font-weight: 850; }
.float-card--profit { top: 7%; right: 0; transform: translateZ(118px) rotateZ(3deg); animation: float-one 5.4s ease-in-out infinite; }
.float-card--stock { right: -1%; bottom: 10%; transform: translateZ(105px) rotateZ(2deg); animation: float-two 6.1s .8s ease-in-out infinite; }
.float-card--order { left: 0; bottom: 5%; transform: translateZ(126px) rotateZ(-3deg); animation: float-one 6.6s 1.4s ease-in-out infinite reverse; }
.stock-ring { position: relative; display: grid !important; width: 2.2rem; height: 2.2rem; place-items: center; border-radius: 50%; background: conic-gradient(#69d6a7 94%, rgba(255,255,255,.08) 0); }
.stock-ring::after { position: absolute; inset: 4px; content: ""; border-radius: 50%; background: #10202b; }
.stock-ring span { position: relative; z-index: 2; color: #fff; font-size: .58rem; font-weight: 800; }
.order-box { position: relative; display: block; width: 2.05rem; height: 2.05rem; transform: rotate(30deg) skew(-4deg); }
.order-box i { position: absolute; display: block; background: #e73840; border: 1px solid rgba(255,255,255,.12); }
.order-box i:nth-child(1){ inset: .3rem .3rem .65rem .3rem; transform: skew(0deg,-17deg); }
.order-box i:nth-child(2){ width: .72rem; top: .55rem; bottom: .24rem; left: .25rem; background: #a91620; transform: skewY(18deg); }
.order-box i:nth-child(3){ width: .72rem; top: .55rem; bottom: .24rem; right: .25rem; background: #ca222c; transform: skewY(-18deg); }

.scene-cube { position: absolute; z-index: 2; width: 3rem; height: 3rem; transform-style: preserve-3d; opacity: .62; }
.scene-cube span { position: absolute; width: 100%; height: 100%; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.035); }
.scene-cube span:nth-child(1){ transform: rotateX(60deg) rotateZ(45deg); }
.scene-cube span:nth-child(2){ transform: translate(1.03rem,1.08rem) rotateY(60deg) rotateZ(-30deg); background: rgba(231,48,55,.06); }
.scene-cube span:nth-child(3){ transform: translate(-.95rem,1.08rem) rotateY(-60deg) rotateZ(30deg); background: rgba(42,143,190,.06); }
.scene-cube--one { top: 5%; left: 10%; transform: scale(.7) translateZ(20px); animation: cube-drift 8s ease-in-out infinite; }
.scene-cube--two { right: 6%; bottom: 28%; transform: scale(.45) translateZ(20px); animation: cube-drift 7s 1s ease-in-out infinite reverse; }

.brand-footer { color: rgba(255,255,255,.33); font-size: .62rem; letter-spacing: .055em; text-transform: uppercase; }
.brand-footer__line { flex: 1; height: 1px; margin: 0 .9rem; background: rgba(255,255,255,.07); }

/* =========================================================
   ACCESS SIDE — CLEAN ON PURPOSE
========================================================= */
.access-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at 100% 0, rgba(230,47,54,.045), transparent 25rem),
        var(--page);
    border-left: 1px solid var(--border);
    transition: background .28s ease, border-color .28s ease;
}
.access-topbar {
    position: absolute;
    top: max(1.6rem, env(safe-area-inset-top));
    right: clamp(1.5rem, 3vw, 2.7rem);
    z-index: 8;
}
.access-inner {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: max(5.4rem, env(safe-area-inset-top)) clamp(1.5rem, 4.8vw, 4.8rem) max(2rem, env(safe-area-inset-bottom));
}
.access-card {
    width: min(100%, 29.5rem);
    padding: clamp(1.65rem, 3vw, 2.35rem);
    border: 1px solid var(--border);
    border-radius: 1.35rem;
    background: var(--surface);
    box-shadow: 0 22px 55px rgba(21,32,43,.08), 0 2px 5px rgba(21,32,43,.03);
    animation: card-in .55s var(--ease) both;
    transition: background .28s ease, border-color .28s ease, box-shadow .28s ease;
}
html[data-theme="dark"] .access-card { box-shadow: 0 30px 75px rgba(0,0,0,.24); }
.access-header { margin-bottom: 1.6rem; }
.access-marker {
    display: inline-flex;
    align-items: center;
    gap: .48rem;
    color: var(--brand-red);
    font-size: .68rem;
    font-weight: 820;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.access-marker::before { width: .38rem; height: .38rem; content: ""; border-radius: 50%; background: currentColor; }
.access-header h2 { margin: .72rem 0 .4rem; font-size: clamp(1.8rem, 3vw, 2.25rem); line-height: 1.1; letter-spacing: -.045em; }
.access-header p { margin: 0; color: var(--text-soft); font-size: .9rem; }
.login-form { display: grid; gap: 1.05rem; }
.form-field { display: grid; gap: .48rem; }
.form-field label { font-size: .79rem; font-weight: 740; }
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper input {
    width: 100%;
    min-height: 3.35rem;
    padding: .82rem 4.7rem .82rem 2.75rem;
    border: 1px solid var(--border);
    border-radius: .9rem;
    outline: 0;
    background: var(--field);
    color: var(--text);
    font-size: .91rem;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.input-wrapper input[type="email"] { padding-right: 1rem; }
.input-wrapper input::placeholder { color: var(--text-muted); }
.input-wrapper input:hover { border-color: var(--border-strong); }
.input-wrapper input:focus-visible { border-color: var(--brand-blue); background: var(--field-focus); box-shadow: 0 0 0 .23rem var(--focus); }
.input-icon { position: absolute; left: 1rem; z-index: 1; color: var(--text-muted); font-size: .8rem; font-weight: 850; pointer-events: none; }
.input-icon--password { font-size: .48rem; }
.input-wrapper:focus-within .input-icon { color: var(--brand-blue); }
.password-toggle {
    position: absolute;
    right: .5rem;
    min-width: 4rem;
    min-height: 2.1rem;
    padding: .3rem .55rem;
    border: 0;
    border-radius: .6rem;
    background: transparent;
    color: var(--brand-blue);
    cursor: pointer;
    font-size: .7rem;
    font-weight: 780;
}
.password-toggle:hover { background: rgba(39,145,194,.08); }
.primary-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    width: 100%;
    min-height: 3.42rem;
    margin-top: .28rem;
    padding: .85rem 1.2rem;
    overflow: hidden;
    border: 0;
    border-radius: .9rem;
    background: linear-gradient(135deg, #f33a42, var(--brand-red) 62%, #c71922);
    color: #fff;
    cursor: pointer;
    font-size: .88rem;
    font-weight: 800;
    box-shadow: 0 12px 25px rgba(230,47,54,.22);
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.primary-button::before { position: absolute; inset: 0; content: ""; background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.18) 50%, transparent 75%); transform: translateX(-130%); transition: transform .55s ease; }
.primary-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(230,47,54,.28); }
.primary-button:hover:not(:disabled)::before { transform: translateX(130%); }
.primary-button:active:not(:disabled) { transform: translateY(0); }
.primary-button:disabled { cursor: wait; opacity: .74; }
.button-arrow { font-size: 1rem; transition: transform .16s ease; }
.primary-button:hover .button-arrow { transform: translateX(.18rem); }
.button-spinner { display: none; width: 1rem; height: 1rem; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
[aria-busy="true"] .button-arrow { display: none; }
[aria-busy="true"] .button-spinner { display: inline-block; }
.feedback { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.1rem; padding: .78rem .9rem; border: 1px solid; border-radius: .78rem; font-size: .78rem; line-height: 1.4; }
.feedback--success { border-color: var(--success-border); background: var(--success-soft); color: var(--success); }
.feedback--error { border-color: var(--danger-border); background: var(--danger-soft); color: var(--danger); }
.access-security { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .48rem; margin-top: 1.35rem; padding-top: 1.08rem; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .68rem; }
.access-security__mark { display: grid; width: 1rem; height: 1rem; place-items: center; border-radius: 50%; background: var(--success-soft); color: var(--success); font-size: .58rem; font-weight: 900; }
.access-security i { width: .2rem; height: .2rem; border-radius: 50%; background: var(--border-strong); }
.access-footer { display: flex; align-items: center; gap: .55rem; margin-top: 1.5rem; color: var(--text-muted); font-size: .67rem; font-weight: 650; }
.access-footer i { width: .22rem; height: .22rem; border-radius: 50%; background: var(--border-strong); }
.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 2.55rem;
    padding: .4rem .7rem;
    border: 1px solid var(--border);
    border-radius: .75rem;
    background: var(--surface);
    color: var(--text-soft);
    cursor: pointer;
    font-size: .72rem;
    font-weight: 760;
    box-shadow: 0 8px 22px rgba(21,32,43,.05);
    transition: border-color .16s ease, transform .16s ease, background .28s ease;
}
.theme-toggle:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.theme-toggle__icon { display: grid; width: 1.45rem; height: 1.45rem; place-items: center; border-radius: .45rem; background: var(--surface-soft); color: var(--brand-blue); }
.password-toggle:focus-visible, .theme-toggle:focus-visible, .primary-button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

@keyframes card-in { from { opacity: 0; transform: translateY(1rem) scale(.986); } to { opacity: 1; transform: none; } }
@keyframes float-one { 0%,100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes float-two { 0%,100% { translate: 0 0; } 50% { translate: 4px -7px; } }
@keyframes cube-drift { 0%,100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -12px; rotate: 7deg; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1320px) {
    .login-shell { grid-template-columns: minmax(34rem, 1.08fr) minmax(29rem, .92fr); }
    .brand-stage { padding-inline: clamp(2.2rem, 3.2vw, 3.5rem); }
    .brand-main { grid-template-columns: minmax(17rem, .78fr) minmax(24rem, 1.22fr); gap: 1rem; }
    .scene-wrap { min-height: clamp(27rem, 58vh, 36rem); }
    .float-card { transform: scale(.88); }
}

@media (max-width: 1080px) {
    .login-shell { grid-template-columns: 1fr 1fr; }
    .brand-stage { padding-inline: 2.25rem; }
    .brand-main { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 1.6rem; }
    .brand-copy { max-width: 31rem; }
    .brand-copy h1 { font-size: clamp(2.6rem, 5vw, 3.6rem); }
    .brand-copy p { max-width: 27rem; }
    .scene-wrap { width: 100%; min-height: 22rem; }
    .dashboard-object { top: 5%; left: 6%; width: 85%; height: 75%; }
    .float-card--profit { top: 0; }
    .float-card--stock { bottom: 0; }
    .float-card--order { bottom: -1%; }
}

@media (max-width: 820px) {
    .login-shell { grid-template-columns: 1fr; }
    .brand-stage { min-height: 34rem; padding: 1.4rem 1.25rem 1.8rem; }
    .brand-main { display: grid; grid-template-columns: 1fr; gap: .8rem; padding: 2.2rem 0 .8rem; }
    .brand-copy { max-width: 31rem; }
    .brand-copy h1 { max-width: 28rem; margin-top: .85rem; font-size: clamp(2.45rem, 10vw, 3.7rem); }
    .brand-copy p { max-width: 30rem; font-size: .9rem; }
    .scene-wrap { min-height: 18.5rem; margin-top: .4rem; }
    .dashboard-object { top: 5%; left: 3%; width: 88%; height: 79%; transform: translateZ(30px) rotateZ(-1.6deg) scale(.9); transform-origin: left center; }
    .float-card { scale: .72; }
    .float-card--profit { top: -4%; right: -7%; }
    .float-card--stock { right: -7%; bottom: -5%; }
    .float-card--order { left: -5%; bottom: -8%; }
    .brand-footer { display: none; }
    .access-stage { min-height: 100vh; min-height: 100dvh; border-left: 0; border-top: 1px solid var(--border); }
    .access-inner { padding-top: 5.8rem; }
}

@media (max-width: 540px) {
    .brand-stage { min-height: 29rem; }
    .brand-header { align-items: flex-start; }
    .brand-status { display: none; }
    .brand-mark { width: 2.7rem; height: 2.7rem; flex-basis: 2.7rem; }
    .brand-main { padding-top: 1.5rem; }
    .brand-copy h1 { font-size: clamp(2.2rem, 12vw, 3rem); }
    .brand-copy p { font-size: .84rem; line-height: 1.6; }
    .scene-wrap { min-height: 14rem; }
    .dashboard-object { left: -2%; top: -1%; width: 100%; height: 94%; transform: translateZ(20px) rotateZ(-1deg) scale(.78); transform-origin: left center; }
    .dash-metric small, .dash-chip, .float-card--stock, .scene-cube { display: none; }
    .float-card--profit { right: -14%; top: -15%; }
    .float-card--order { bottom: -15%; left: -10%; }
    .access-topbar { top: 1rem; right: 1rem; }
    .access-inner { padding: 4.8rem 1rem 1.5rem; }
    .access-card { padding: 1.35rem; border-radius: 1.15rem; }
    .access-security { gap: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .scene { transform: rotateX(2deg) rotateY(-8deg) !important; }
}

/* =========================================================
   REFINO PREMIUM DO LOGIN
   adicionar no final de public/assets/css/login.css
========================================================= */

.brand-header {
    justify-content: flex-start;
}

.brand-lockup__copy strong {
    font-size: 1.1rem;
    font-weight: 760;
    letter-spacing: -0.02em;
}

.brand-lockup__copy span {
    margin-top: .24rem;
    color: rgba(255, 255, 255, .68);
    font-size: .84rem;
    letter-spacing: .01em;
}

.brand-kicker {
    letter-spacing: .10em;
}

.brand-copy p {
    max-width: 31rem;
    color: rgba(255,255,255,.70);
}

.dash-chip {
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.78);
    border-color: rgba(255,255,255,.10);
}

.access-card {
    width: min(100%, 30rem);
    padding: clamp(1.9rem, 3vw, 2.55rem);
    border-radius: 1.55rem;
    background:
        linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)),
        var(--surface);
    box-shadow:
        0 26px 70px rgba(11, 18, 25, .10),
        0 1px 0 rgba(255,255,255,.04) inset;
}

html[data-theme="dark"] .access-card {
    box-shadow:
        0 30px 80px rgba(0,0,0,.32),
        0 1px 0 rgba(255,255,255,.04) inset;
}

.access-header {
    margin-bottom: 1.75rem;
}

.access-eyebrow {
    display: inline-block;
    margin-bottom: .85rem;
    color: var(--brand-red);
    font-size: .77rem;
    font-weight: 820;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.access-header h2 {
    margin: 0 0 .55rem;
    font-size: clamp(2rem, 3vw, 2.65rem);
    line-height: 1.04;
    letter-spacing: -.05em;
}

.access-header p {
    margin: 0;
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.6;
}

.login-form {
    display: grid;
    gap: 1.2rem;
}

.form-field {
    display: grid;
    gap: .58rem;
}

.form-field label {
    font-size: .86rem;
    font-weight: 760;
    color: var(--text);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    min-height: 3.95rem;
    padding: 1rem 5.2rem 1rem 4.2rem;
    border: 1px solid transparent;
    border-radius: 1.18rem;
    outline: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)),
        var(--field);
    color: var(--text);
    font-size: 1rem;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.02) inset,
        0 8px 18px rgba(10, 20, 30, .02);
    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.input-wrapper--email input {
    padding-right: 1.15rem;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper input:hover {
    border-color: var(--border-strong);
}

.input-wrapper input:focus-visible {
    border-color: rgba(34, 147, 207, .7);
    background: var(--field-focus);
    box-shadow:
        0 0 0 .28rem var(--focus),
        0 14px 28px rgba(8, 19, 30, .06);
}

.field-decoration {
    position: absolute;
    left: .85rem;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 2.45rem;
    height: 2.45rem;
    border: 1px solid rgba(255,255,255,.05);
    border-radius: .86rem;
    background: rgba(255,255,255,.03);
    color: var(--text-muted);
    pointer-events: none;
    transition:
        color .18s ease,
        background .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.field-decoration svg {
    width: 1.05rem;
    height: 1.05rem;
    display: block;
}

.input-wrapper:focus-within .field-decoration {
    color: var(--brand-blue);
    background: rgba(33, 142, 196, .10);
    border-color: rgba(33, 142, 196, .18);
    transform: translateY(-1px);
}

.password-toggle {
    position: absolute;
    right: .62rem;
    min-width: 5.35rem;
    min-height: 2.5rem;
    padding: .5rem .9rem;
    border: 1px solid transparent;
    border-radius: .86rem;
    background: rgba(255,255,255,.035);
    color: var(--brand-blue);
    cursor: pointer;
    font-size: .79rem;
    font-weight: 790;
    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease,
        color .18s ease;
}

.password-toggle:hover {
    background: rgba(39,145,194,.10);
    border-color: rgba(39,145,194,.14);
    transform: translateY(-1px);
}

.password-toggle:active {
    transform: translateY(0);
}

.primary-button {
    min-height: 3.75rem;
    margin-top: .4rem;
    border-radius: 1.18rem;
    font-size: .98rem;
    letter-spacing: -.01em;
    box-shadow: 0 18px 36px rgba(230,47,54,.24);
}

.primary-button:hover:not(:disabled) {
    box-shadow: 0 22px 42px rgba(230,47,54,.28);
}

.feedback {
    border-radius: 1rem;
    padding: .92rem 1rem;
    font-size: .83rem;
}

.access-note {
    margin: 1.3rem 0 0;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: .78rem;
    line-height: 1.5;
    text-align: center;
}

.access-footer {
    margin-top: 1.55rem;
    color: var(--text-muted);
    font-size: .76rem;
    font-weight: 650;
    letter-spacing: .01em;
}

.theme-toggle {
    min-height: 2.9rem;
    padding: .5rem .82rem;
    border-radius: .95rem;
}

.theme-toggle__icon {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: .6rem;
}

@media (max-width: 720px) {
    .access-card {
        width: min(100%, 100%);
        padding: 1.5rem;
        border-radius: 1.35rem;
    }

    .access-header h2 {
        font-size: 2rem;
    }

    .input-wrapper input {
        min-height: 3.7rem;
        padding-left: 3.95rem;
    }

    .password-toggle {
        min-width: 4.8rem;
        padding-inline: .72rem;
        font-size: .76rem;
    }

    .access-note {
        font-size: .75rem;
    }
}
