/* Entry screens share the workspace palette without loading application styles. */
:root {
    color-scheme: light;
    --auth-ink: #162f40; --auth-muted: #5e7280; --auth-accent: #087d88; --auth-accent-hover: #066773;
    --auth-line: #d4dfe5; --auth-background: #f4f7f8; --auth-surface: #fff; --auth-soft: #e7f1f2;
    --auth-soft-line: #ccdee1; --auth-placeholder: #71838e; --auth-focus: #087d8824; --auth-button-text: #fff;
    --auth-font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --auth-ink: #e1edf2; --auth-muted: #a5b7c2; --auth-accent: #77d1d7; --auth-accent-hover: #9de2e6;
    --auth-line: #354b5a; --auth-background: #10222f; --auth-surface: #192f3d; --auth-soft: #1d3d48;
    --auth-soft-line: #365862; --auth-placeholder: #99adb9; --auth-focus: #77d1d72e; --auth-button-text: #102e39;
}
* { box-sizing: border-box; }
body.odera-login { margin: 0; background: var(--auth-background); color: var(--auth-ink); font-family: var(--auth-font); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--auth-ink); background: var(--auth-soft-line); }
.od-auth-skip { position: fixed; left: 24px; top: 16px; z-index: 10; padding: 12px 18px; color: var(--auth-ink); background: var(--auth-surface); border: 1px solid var(--auth-line); border-radius: 8px; font-size: 13px; font-weight: 700; transform: translateY(-160%); }
.od-auth-skip:focus { transform: translateY(0); }
.od-login-split { display: grid; grid-template-columns: minmax(0, 47fr) minmax(0, 53fr); min-height: 100vh; min-height: 100svh; padding: 20px; gap: 20px; }
.od-login-brand { display: flex; flex-direction: column; position: relative; overflow: hidden; min-height: calc(100vh - 40px); min-height: calc(100svh - 40px); border: 1px solid #294453; border-radius: 24px; padding: clamp(32px, 4vw, 64px); color: #fff; background: radial-gradient(ellipse at 0 100%, #204c58 0, transparent 60%), #152d3d; }
.od-login-brand::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(#ffffff04 1px, transparent 1px), linear-gradient(90deg, #ffffff04 1px, transparent 1px); background-size: 64px 64px; }
.od-login-brand::after { content: ''; position: absolute; width: 650px; height: 650px; right: -410px; top: -320px; border-radius: 50%; border: 1px solid #ffffff09; box-shadow: 0 0 0 78px #ffffff03, 0 0 0 156px #ffffff02; pointer-events: none; }
.od-auth-wordmark { position: relative; display: flex; gap: 14px; align-items: center; z-index: 1; }
.od-login-brand-logo { display: grid; place-items: center; flex: 0 0 47px; height: 47px; background: #ffffff0c; border: 1px solid #ffffff30; border-radius: 14px; font-size: 18px; font-weight: 800; letter-spacing: -1px; box-shadow: inset 0 1px #ffffff0d; }
.od-auth-wordmark strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.6px; }
.od-auth-wordmark div > span { display: block; color: #afc1cc; font-size: 10px; letter-spacing: 1.4px; margin-top: 4px; text-transform: uppercase; }
.od-login-brand-content { position: relative; z-index: 1; margin: auto 0; padding: 56px 0 48px; }
.od-auth-eyebrow { font-size: 10px; line-height: 1.6; letter-spacing: 1.6px; font-weight: 800; color: var(--auth-accent); margin: 0 0 16px; }
.od-login-brand .od-auth-eyebrow { color: #9ccdd0; }
.od-login-brand h1 { font-size: clamp(37px, 4.2vw, 61px); line-height: 1.17; font-weight: 700; letter-spacing: -2.6px; margin: 0; }
.od-login-brand h1 span { color: #88d6d4; }
.od-brand-description { font-size: 14px; line-height: 1.95; color: #b9cbd4; max-width: 440px; margin: 24px 0 0; }
.od-auth-route { position: relative; margin-top: 38px; border: 1px solid #ffffff1c; border-radius: 16px; padding: 20px 20px 16px; background: #0e263352; box-shadow: inset 0 1px #ffffff04; }
.od-route-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: #b0cbd5; font-size: 9px; letter-spacing: 1.7px; font-weight: 700; }
.od-route-heading > i { color: #84cbd0; font-size: 15px; }
.od-route-track { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 23px; }
.od-route-track::before { content: ''; position: absolute; top: 19px; left: 17px; right: 17px; border-top: 1px dashed #64838e; }
.od-route-stop { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.od-route-stop:first-child { align-items: start; }
.od-route-stop:last-child { align-items: end; }
.od-route-node { width: 39px; height: 39px; display: grid; place-items: center; color: #b4eeea; background: #244754; border: 1px solid #54858c; border-radius: 12px; font-size: 14px; box-shadow: 0 0 0 5px #193643; }
.od-route-stop:last-child .od-route-node { background: #8bd4cf; border-color: #8bd4cf; color: #173c47; }
.od-route-stop > span:not(.od-route-node) { margin-top: 9px; color: #a6c5d0; font-size: 8px; letter-spacing: .8px; font-weight: 700; white-space: nowrap; }
.od-route-stop strong { font-size: 11px; line-height: 1.6; color: #e6eff3; font-weight: 600; white-space: nowrap; }
.od-route-caption { margin-top: 18px; padding-top: 13px; border-top: 1px solid #ffffff12; color: #a8c2cd; font-size: 10px; line-height: 1.7; }
.od-auth-brand-footer { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; font-size: 11px; line-height: 1.7; color: #b0c5cf; }
.od-brand-footer-line { display: inline-block; width: 23px; height: 1px; background: #75a5b0; flex: 0 0 23px; }
.od-login-form-side { min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 27px clamp(24px, 4.3vw, 66px) 20px; }
.od-login-form-side:focus { outline: none; }
.od-auth-page-label { align-self: end; color: var(--auth-muted); font-size: 10px; letter-spacing: 1.8px; font-weight: 700; }
.od-login-form-wrap { width: 100%; max-width: 400px; margin: auto 0; padding: 48px 0; }
.od-auth-form-icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 15px; background: var(--auth-soft); border: 1px solid var(--auth-soft-line); color: var(--auth-accent); font-size: 20px; margin-bottom: 28px; }
.od-login-form-wrap .od-auth-eyebrow { font-size: 10px; letter-spacing: 1.1px; margin-bottom: 9px; }
.od-login-form-wrap h2 { font-size: 38px; letter-spacing: -1.6px; line-height: 1.25; font-weight: 800; margin: 0; }
.od-login-form-wrap .subtitle { margin: 13px 0 32px; font-size: 14px; line-height: 1.85; color: var(--auth-muted); max-width: 380px; }
.od-auth-field { min-width: 0; margin-bottom: 22px; }
.od-auth-field label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 700; line-height: 1.5; }
.od-input-group { position: relative; }
.od-input, .od-auth-field input { display: block; background: var(--auth-surface); width: 100%; height: 52px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--auth-line); outline: none; color: var(--auth-ink); transition: border-color .16s, box-shadow .16s; font-size: 14px; box-shadow: 0 2px 3px #102a3903; }
.od-input-group .od-input { padding-left: 44px; padding-right: 49px; }
.od-input::placeholder, .od-auth-field input::placeholder { color: var(--auth-placeholder); opacity: 1; }
.od-input:hover, .od-auth-field input:hover { border-color: var(--auth-placeholder); }
.od-input:focus, .od-auth-field input:focus { border-color: var(--auth-accent); box-shadow: 0 0 0 4px var(--auth-focus); }
.od-auth-field input:user-invalid { border-color: #b44c4b; }
.icon-left { position: absolute; top: 50%; left: 17px; transform: translateY(-50%); font-size: 13px; color: var(--auth-muted); pointer-events: none; }
.od-input-group:focus-within .icon-left { color: var(--auth-accent); }
.od-password-toggle { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; border: 0; background: transparent; color: var(--auth-muted); width: 44px; height: 44px; border-radius: 7px; cursor: pointer; }
.od-password-toggle:hover, .od-password-toggle[aria-pressed="true"] { background: var(--auth-soft); color: var(--auth-accent); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--auth-accent); outline-offset: 4px; }
.od-login-btn { display: flex; width: 100%; align-items: center; justify-content: center; gap: 14px; min-height: 52px; border: 1px solid var(--auth-accent); border-radius: 10px; color: var(--auth-button-text); background: var(--auth-accent); font-size: 14px; font-weight: 800; margin-top: 28px; padding: 13px 18px; cursor: pointer; box-shadow: 0 5px 14px #087d881b; transition: background .16s, box-shadow .16s, transform .16s; }
.od-login-btn i { font-size: 12px; transition: transform .16s; }
.od-login-btn:hover:not(:disabled) { background: var(--auth-accent-hover); border-color: var(--auth-accent-hover); box-shadow: 0 7px 17px #087d8824; }
.od-login-btn:hover:not(:disabled) i { transform: translateX(3px); }
.od-login-btn:active:not(:disabled) { transform: translateY(1px); }
.od-login-btn:disabled { opacity: .75; cursor: wait; }
.od-login-footer { display: flex; align-items: start; justify-content: center; gap: 9px; margin-top: 23px; color: var(--auth-muted); font-size: 11px; line-height: 1.8; }
.od-login-footer > i { flex-shrink: 0; padding-top: 4px; }
.od-auth-page-footer { display: flex; justify-content: space-between; width: 100%; gap: 16px; color: var(--auth-muted); font-size: 10px; line-height: 1.8; }
.od-auth-page-footer > span:first-child { font-weight: 800; }
.od-login-error, .od-auth-success { display: flex; align-items: start; gap: 10px; border-radius: 10px; padding: 14px 16px; background: #fff1ef; border: 1px solid #ebc6c1; color: #973a35; font-size: 13px; line-height: 1.65; margin-bottom: 24px; overflow-wrap: anywhere; }
.od-login-error > i, .od-auth-success > i { margin-top: 3px; flex-shrink: 0; }
.od-auth-success { color: #24624e; background: #edf7f0; border-color: #bedac9; }
:root[data-theme="dark"] .od-login-error { color: #ffb9ae; background: #3d2a30; border-color: #67414a; }
:root[data-theme="dark"] .od-auth-success { color: #9fe0c5; background: #203d37; border-color: #3b6658; }
.od-auth-spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: auth-spin .75s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
/* The first installation uses grouped, readable settings. */
.odera-setup .od-login-split { grid-template-columns: minmax(0, 41fr) minmax(0, 59fr); }
.odera-setup .od-login-brand h1 { font-size: clamp(35px, 3.7vw, 52px); }
.odera-setup .od-login-brand-content { padding-top: 58px; }
.odera-setup .od-login-form-wrap { max-width: 560px; padding: 36px 0; }
.odera-setup .od-login-form-wrap h2 { font-size: 30px; letter-spacing: -1.2px; }
.odera-setup .od-login-form-wrap .subtitle { margin-bottom: 28px; max-width: 465px; }
.od-setup-steps { list-style: none; margin: 42px 0 0; padding: 0; display: grid; gap: 29px; }
.od-setup-steps li { position: relative; display: flex; gap: 16px; align-items: start; }
.od-setup-steps li:not(:last-child)::after { content: ''; position: absolute; top: 43px; bottom: -19px; left: 17px; border-left: 1px solid #ffffff20; }
.od-setup-step-number { display: grid; place-items: center; height: 36px; width: 36px; flex: 0 0 36px; border-radius: 11px; border: 1px solid #577b89; background: #ffffff07; font-size: 11px; color: #b3dedf; font-weight: 700; }
.od-setup-steps strong { display: block; font-size: 14px; line-height: 1.8; font-weight: 700; }
.od-setup-steps p { color: #b4c7d1; font-size: 12px; line-height: 1.8; margin: 4px 0 0; }
.od-setup-section { border: 1px solid var(--auth-line); border-radius: 14px; background: var(--auth-surface); padding: 20px; margin: 0 0 26px; min-width: 0; }
.od-setup-section legend { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 800; max-width: 100%; padding: 0 8px; margin-left: -6px; }
.od-setup-section legend span { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 7px; background: var(--auth-soft); border: 1px solid var(--auth-soft-line); color: var(--auth-accent); font-size: 10px; }
.od-auth-field-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 16px; }
.od-auth-field-grid .od-auth-field { margin-bottom: 0; }
.od-auth-field-wide { grid-column: 1 / -1; }
.odera-setup .od-auth-field label { font-size: 12px; margin-bottom: 8px; }
.odera-setup .od-auth-field input { height: 46px; font-size: 13px; }
.od-auth-optional { float: right; color: var(--auth-muted); font-size: 10px; line-height: 1.8; font-weight: 500; }
.od-auth-hint { margin: 7px 0 0; color: var(--auth-muted); font-size: 11px; line-height: 1.7; }
.odera-setup .od-login-btn { margin-top: 3px; }
.odera-setup .od-login-footer { margin-top: 17px; }
.od-auth-success-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--auth-accent); text-underline-offset: 4px; font-size: 14px; font-weight: 700; }
.od-auth-uppercase { text-transform: uppercase; }
@media (min-width: 1600px) { .od-login-split { max-width: 1600px; margin: 0 auto; } }
@media (max-width: 1100px) {
    .od-login-brand { padding: 32px; }
    .od-login-brand h1 { letter-spacing: -1.8px; }
    .od-login-form-side { padding-inline: 28px; }
    .od-desktop-break { display: none; }
    .od-auth-route { padding-inline: 15px; }
    .od-route-stop > span:not(.od-route-node) { font-size: 7px; letter-spacing: .3px; }
    .od-route-stop strong { font-size: 10px; }
    .odera-setup .od-login-split { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); }
}
@media (max-width: 800px) {
    .od-login-split, .odera-setup .od-login-split { display: flex; flex-direction: column; padding: 12px; gap: 0; }
    .od-login-brand { min-height: auto; padding: 25px 28px; border-radius: 18px; }
    .od-auth-wordmark { gap: 11px; }
    .od-login-brand-logo { width: 39px; height: 39px; flex-basis: 39px; border-radius: 11px; font-size: 16px; }
    .od-auth-wordmark strong { font-size: 17px; }
    .od-auth-wordmark div > span { font-size: 9px; letter-spacing: 1px; }
    .od-login-brand-content, .odera-setup .od-login-brand-content { padding: 25px 0 0; margin: 0; }
    .od-login-brand .od-auth-eyebrow { display: none; }
    .od-login-brand h1, .odera-setup .od-login-brand h1 { font-size: 31px; line-height: 1.23; letter-spacing: -1.2px; }
    .od-login-brand h1 br { display: none; }
    .od-brand-description { font-size: 12px; line-height: 1.8; margin-top: 11px; max-width: 440px; }
    .od-auth-route, .od-auth-brand-footer, .od-setup-steps { display: none; }
    .od-login-form-side { padding: 0 28px 9px; }
    .od-auth-page-label { display: none; }
    .od-login-form-wrap { max-width: 450px; margin: 0; padding: 37px 0 35px; }
    .od-auth-form-icon { display: none; }
    .od-login-form-wrap h2 { font-size: 31px; letter-spacing: -1.2px; }
    .od-login-form-wrap .subtitle { font-size: 13px; margin-top: 11px; margin-bottom: 26px; }
    .od-login-form-wrap .od-auth-eyebrow { font-size: 9px; letter-spacing: 1px; }
    .od-input, .od-auth-field input, .odera-setup .od-auth-field input { font-size: 16px; }
    .od-input::placeholder, .od-auth-field input::placeholder { font-size: 13px; }
    .od-auth-field { margin-bottom: 20px; }
    .od-auth-page-footer { max-width: 450px; font-size: 9px; flex-wrap: wrap; gap: 6px 14px; }
    .od-login-btn { margin-top: 25px; }
    .odera-setup .od-login-form-wrap { padding: 32px 0; }
    .odera-setup .od-login-form-wrap h2 { font-size: 27px; }
}
@media (max-width: 520px) {
    .od-login-brand { padding: 23px; }
    .od-login-brand-content, .odera-setup .od-login-brand-content { padding-top: 21px; }
    .od-login-brand h1, .odera-setup .od-login-brand h1 { max-width: 340px; font-size: 27px; letter-spacing: -.9px; }
    .od-brand-description { display: none; }
    .od-login-form-side { padding-inline: 18px; }
    .od-auth-field-grid { grid-template-columns: minmax(0, 1fr); }
    .od-auth-field-wide { grid-column: auto; }
    .od-setup-section { padding: 18px 16px; }
    .od-auth-optional { float: none; display: inline-block; margin-left: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (forced-colors: active) {
    .od-input:focus, .od-auth-field input:focus { outline: 2px solid Highlight; outline-offset: 2px; }
    .od-auth-route, .od-route-node, .od-login-brand-logo { border-color: CanvasText; }
}
