/* Central sign-in: self-contained styles, shared central-theme preference. */
:root {
    color-scheme: light;
    --bg: #f4f7f5; --surface: #ffffff; --soft: #f6f9f8; --ink: #172e30;
    --muted: #647778; --line: #dbe6e3; --accent: #08796f; --accent-soft: #e6f5ef;
    --lime: #dbf790; --card-shadow: 0 24px 80px -30px #174d3d30, 0 2px 6px #174d3d04;
    --node: #ffffffdc; --error: #a22d39; --error-bg: #fff0f1;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0c1718; --surface: #142325; --soft: #192b2d; --ink: #edf5ef;
    --muted: #a0b6b3; --line: #2c4140; --accent: #9be4c9; --accent-soft: #203c35;
    --card-shadow: 0 30px 90px -25px #0008, 0 1px 0 #ffffff08 inset;
    --node: #1a3030eb; --error: #ffb4bb; --error-bg: #3c242b;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        color-scheme: dark;
        --bg: #0c1718; --surface: #142325; --soft: #192b2d; --ink: #edf5ef;
        --muted: #a0b6b3; --line: #2c4140; --accent: #9be4c9; --accent-soft: #203c35;
        --card-shadow: 0 30px 90px -25px #0008; --node: #1a3030eb;
        --error: #ffb4bb; --error-bg: #3c242b;
    }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 14px/1.5 "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; isolation: isolate; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ambient { position: fixed; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(70px); animation: ambient-drift 16s ease-in-out infinite alternate; }
.ambient-one { width: 40vw; height: 40vw; top: 9%; left: -16%; background: #48cbb421; }
.ambient-two { width: 28vw; height: 28vw; bottom: -15%; right: 0; background: #c7ef7f25; animation-delay: -8s; }
.page-header, .page-footer { width: min(1440px, 100%); margin: 0 auto; padding: 28px 5%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 18px; color: var(--ink); text-decoration: none; }
.brand-logo { display: flex; align-items: center; padding: 3px 8px; border-radius: 10px; background: #fff; }
.brand-logo img { display: block; object-fit: contain; }
.brand-divider { height: 29px; width: 1px; background: var(--line); }
.brand-name { font-size: 24px; line-height: 1; font-weight: 750; letter-spacing: -1px; }
.brand-name > span { display: block; margin-top: 7px; font-size: 8px; font-weight: 600; letter-spacing: 1.7px; color: var(--muted); }
.theme-switch { display: inline-flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 30px; background: var(--soft); }
.theme-switch button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; min-width: 77px; padding: 8px 13px; border: 0; border-radius: 24px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; transition: background .2s, color .2s; }
.theme-switch svg { width: 16px; height: 16px; }
.theme-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: 0 2px 6px #0001; }
.auth-shell { width: min(1200px, 90%); margin: auto; padding: 40px 0 32px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 6vw, 100px); }
.showcase { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--accent); }
.status-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 5px var(--accent-soft); }
.showcase h2 { margin: 24px 0 19px; font-size: clamp(42px, 4.5vw, 66px); line-height: 1.12; font-weight: 650; letter-spacing: -3.5px; }
.showcase h2 > span { color: var(--accent); }
.showcase-description { color: var(--muted); font-size: 16px; line-height: 1.8; }
.orbit-scene { position: relative; width: 100%; max-width: 535px; height: 295px; margin: 12px 0 20px; }
.orbit { position: absolute; top: 50%; left: 50%; border: 1px solid var(--line); border-radius: 50%; transform: translate(-50%, -50%) rotate(-18deg); }
.orbit-outer { width: 88%; height: 245px; }
.orbit-inner { width: 63%; height: 188px; border-style: dashed; }
.orbit-axis { position: absolute; top: 50%; left: 14%; width: 74%; border-top: 1px solid var(--line); }
.axis-one { transform: rotate(27deg); }
.axis-two { transform: rotate(-27deg); }
.orbit-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg); display: grid; place-content: center; justify-items: center; gap: 8px; width: 114px; height: 114px; border: 1px solid #ffffff60; border-radius: 32px; background: linear-gradient(140deg, #237f73, #104c47); color: var(--lime); box-shadow: 0 16px 38px #14554b35, 0 0 0 12px #69b5970b, inset 0 1px 0 #ffffff38; }
.orbit-core svg { width: 44px; height: 44px; stroke-width: 2; }
.orbit-core strong { font-size: 15px; font-weight: 650; letter-spacing: -.5px; }
.orbit-node { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--node); box-shadow: 0 10px 28px #0c392c0b; backdrop-filter: blur(12px); animation: node-float 6s ease-in-out infinite; }
.node-tenants { top: 20px; left: 3%; }
.node-security { top: 107px; right: 0; animation-delay: -2s; }
.node-operations { bottom: 11px; left: 8%; animation-delay: -4s; }
.node-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); font-size: 24px; }
.node-tenants .node-icon { color: #365824; background: #e2efbc; }
.orbit-node small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 7px; font-weight: 650; letter-spacing: 1px; }
.orbit-node strong { font-size: 12px; font-weight: 600; }
.orbit-node i { width: 6px; height: 6px; margin-left: 8px; background: #3eb28d; border-radius: 50%; }
.orbit-spark { position: absolute; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 5px var(--accent-soft); background: var(--accent); }
.spark-one { top: 42px; right: 21%; }
.spark-two { bottom: 49px; right: 23%; width: 6px; height: 6px; background: #a8c563; }
.showcase-footer { display: flex; align-items: center; gap: 13px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.7; }
.mini-mark { color: var(--accent); font-size: 33px; }
.showcase-footer strong { color: var(--ink); font-weight: 600; }
.edition { margin-left: auto; font-size: 8px; letter-spacing: 1.3px; }
.login-panel { min-width: 0; width: 100%; max-width: 480px; justify-self: end; }
.login-card { position: relative; padding: clamp(28px, 3.4vw, 46px); border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--card-shadow); animation: card-in .6s ease-out both; }
.login-card::before { content: ""; position: absolute; top: -1px; left: 40px; right: 40px; height: 2px; background: linear-gradient(90deg, transparent, #6dba9d, #c7e882, transparent); }
.welcome-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 26px; border: 1px solid var(--line); border-radius: 15px; background: var(--accent-soft); color: var(--accent); }
.welcome-icon svg { width: 24px; height: 24px; }
.login-eyebrow { font-size: 8px; letter-spacing: 1.7px; }
h1 { margin: 10px 0 8px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 650; line-height: 1.2; letter-spacing: -1.3px; }
h1 > span { color: var(--accent); }
.login-description { margin: 0 0 28px; color: var(--muted); font-size: 13px; }
form { display: grid; gap: 19px; }
.form-field label { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; font-weight: 600; }
.form-field label > span { color: var(--muted); font-size: 10px; font-weight: 400; }
.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; left: 15px; top: 17px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
input { width: 100%; height: 52px; padding: 0 45px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: var(--soft); color: var(--ink); font-size: 14px; transition: border-color .2s, box-shadow .2s; }
input::placeholder { color: var(--muted); opacity: .8; }
input:hover { border-color: var(--muted); }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[aria-invalid="true"] { border-color: var(--error); }
input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 100px var(--soft) inset; }
.password-toggle { position: absolute; right: 4px; top: 4px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.password-toggle:hover { background: var(--accent-soft); color: var(--accent); }
.password-toggle svg { width: 18px; height: 18px; }
.eye-slash { display: none; }
.password-toggle[aria-pressed="true"] .eye-slash { display: block; }
#otp { letter-spacing: 5px; }
.mfa-field > small { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.submit-button { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 53px; margin-top: 3px; padding: 14px 19px; border: 1px solid #d7ed9c; border-radius: 11px; background: var(--lime); color: #263b20; font-weight: 650; font-size: 13px; box-shadow: 0 6px 18px #aacd6720; transition: transform .2s, background .2s, box-shadow .2s; }
.submit-button:hover { background: #cdef7b; transform: translateY(-2px); box-shadow: 0 9px 22px #aacd6735; }
.submit-button:active { transform: translateY(0); }
.submit-button:disabled { cursor: wait; opacity: .75; transform: none; }
.spinner { display: none; width: 17px; height: 17px; border: 2px solid #263b2030; border-top-color: #263b20; border-radius: 50%; animation: spin .8s linear infinite; }
.submit-button[aria-busy="true"] > svg { display: none; }
.submit-button[aria-busy="true"] .spinner { display: block; }
.submit-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.error { padding: 12px 14px; border: 1px solid var(--error); border-radius: 10px; color: var(--error); background: var(--error-bg); font-size: 12px; }
.security-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 23px; color: var(--muted); font-size: 10px; }
.security-note svg { width: 13px; height: 13px; }
.audit-note { margin: 18px 10px 0; color: var(--muted); font-size: 10px; text-align: center; }
.page-footer { padding-top: 20px; padding-bottom: 24px; color: var(--muted); font-size: 10px; }
.page-footer > span:last-child { display: flex; gap: 16px; align-items: center; }
.page-footer > span:last-child > span { color: var(--accent); font-size: 18px; }
@keyframes node-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes ambient-drift { to { transform: translate(35px, -30px); } }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 1600px) { .auth-shell { padding-top: 65px; padding-bottom: 65px; } }
@media (max-width: 1000px) {
    .auth-shell { gap: 34px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .showcase h2 { font-size: 44px; letter-spacing: -2.5px; }
    .orbit-node { padding: 10px; gap: 7px; }
    .node-tenants { left: 0; }
    .node-security { right: -5px; top: 127px; }
    .orbit-core { width: 96px; height: 96px; }
    .edition { display: none; }
    .login-card { padding: 28px; }
}
@media (max-width: 760px) {
    .page-header { padding: 22px 6%; }
    .auth-shell { width: min(480px, 88%); grid-template-columns: 1fr; gap: 26px; padding: 20px 0 28px; }
    .showcase { text-align: center; }
    .showcase > .eyebrow { justify-content: center; font-size: 8px; letter-spacing: 1.4px; }
    .showcase h2 { font-size: 38px; letter-spacing: -2px; margin: 16px 0 10px; }
    .showcase h2 br { display: none; }
    .showcase h2 > span { display: block; }
    .showcase-description { font-size: 13px; margin: 0; }
    .showcase-description br { display: none; }
    .orbit-scene, .showcase-footer { display: none; }
    .login-panel { max-width: none; }
    .login-card { padding: 30px; border-radius: 22px; }
    .welcome-icon { margin-bottom: 20px; }
    .page-footer { padding: 16px 6%; }
    .brand { gap: 12px; }
    .brand-logo img { width: 82px; height: 32px; }
    .brand-name { font-size: 21px; }
    .brand-name > span { font-size: 6px; letter-spacing: 1px; }
    .theme-switch button { min-width: 36px; padding: 8px; }
    .theme-switch button > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    input { font-size: 16px; }
}
@media (max-width: 380px) {
    .page-header { padding-inline: 5%; gap: 10px; }
    .brand { gap: 9px; }
    .brand-logo { padding-inline: 4px; }
    .brand-logo img { width: 70px; }
    .auth-shell { width: 92%; }
    .login-card { padding: 24px 20px; }
    .showcase h2 { font-size: 34px; }
    .page-footer > span:last-child { max-width: 150px; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}