/* Shared entry screens. Isolated from the authenticated application's theme. */
:root {
    color-scheme: light;
    --auth-ink: #152b3a;
    --auth-muted: #70808b;
    --auth-accent: #087f8c;
    --auth-line: #dce4e8;
    --auth-font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
body.odera-login { margin: 0; background: #f5f7f8; 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; }
.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 #243c4c; border-radius: 22px; padding: clamp(32px, 4vw, 64px); color: #fff; background: #152b3a; }
.od-login-brand::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(#ffffff03 1px, transparent 1px), linear-gradient(90deg, #ffffff03 1px, transparent 1px); background-size: 56px 56px; }
.od-login-brand::after { content: ''; position: absolute; width: 650px; height: 650px; right: -390px; bottom: -330px; border-radius: 50%; border: 1px solid #ffffff08; box-shadow: 0 0 0 75px #ffffff03, 0 0 0 150px #ffffff02; pointer-events: none; }
.od-auth-wordmark { position: relative; display: flex; gap: 13px; align-items: center; z-index: 1; }
.od-login-brand-logo { display: grid; place-items: center; flex: 0 0 44px; height: 44px; background: #ffffff0c; border: 1px solid #ffffff26; border-radius: 12px; font-size: 17px; font-weight: 800; letter-spacing: -1px; }
.od-auth-wordmark strong { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.55px; }
.od-auth-wordmark div > span { display: block; color: #9fb2bd; font-size: 10px; letter-spacing: 1.5px; margin-top: 4px; text-transform: uppercase; }
.od-login-brand-content { position: relative; z-index: 1; margin: auto 0; padding: 76px 0 58px; }
.od-auth-eyebrow { font-size: 10px; line-height: 1.6; letter-spacing: 1.8px; font-weight: 800; color: var(--auth-accent); margin: 0 0 15px; }
.od-login-brand .od-auth-eyebrow { color: #8bbfc2; }
.od-login-brand h1 { font-size: clamp(36px, 4.2vw, 62px); line-height: 1.17; font-weight: 700; letter-spacing: -2.6px; margin: 0; }
.od-login-brand h1 span { color: #78c7c8; }
.od-brand-description { font-size: 14px; line-height: 1.95; color: #adc0cb; max-width: 440px; margin: 25px 0 0; }
.od-auth-route { position: relative; height: 190px; margin-top: 46px; }
.od-route-path { position: absolute; width: 52%; height: 59px; border-color: #486873; border-style: dashed; border-width: 0; }
.od-route-path-one { left: 6px; top: 21px; border-left-width: 1px; border-bottom-width: 1px; border-radius: 0 0 0 23px; }
.od-route-path-two { left: calc(52% + 5px); top: 79px; width: calc(48% - 17px); border-top-width: 1px; border-right-width: 1px; border-radius: 0 23px 0 0; }
.od-route-stop { position: absolute; display: flex; flex-direction: column; gap: 4px; }
.od-route-stop > span:not(.od-route-dot) { margin-top: 12px; color: #a3bac6; font-size: 8px; letter-spacing: 1.5px; font-weight: 700; }
.od-route-stop strong { font-size: 12px; color: #dce9ee; font-weight: 600; }
.od-route-dot { width: 13px; height: 13px; border: 3px solid #152b3a; background: #7acaca; border-radius: 50%; outline: 1px solid #466c77; }
.od-route-stop-start { left: 0; top: 10px; }
.od-route-stop-start > span:not(.od-route-dot), .od-route-stop-start strong { margin-left: 28px; }
.od-route-stop-start > span:not(.od-route-dot) { margin-top: -18px; }
.od-route-stop-middle { left: calc(52% - 1px); top: 73px; }
.od-route-stop-end { right: 5px; top: 137px; align-items: end; }
.od-route-stop-end > span:not(.od-route-dot), .od-route-stop-end strong { margin-right: 28px; }
.od-route-stop-end > span:not(.od-route-dot) { margin-top: -18px; }
.od-auth-brand-footer { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; font-size: 10px; line-height: 1.7; color: #9eb2be; }
.od-brand-footer-line { display: inline-block; width: 23px; height: 1px; background: #628c99; 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-auth-page-label { align-self: end; color: #8c99a2; font-size: 9px; letter-spacing: 1.8px; font-weight: 700; }
.od-login-form-wrap { width: 100%; max-width: 386px; margin: auto 0; padding: 58px 0; }
.od-auth-form-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: #e6f0f0; border: 1px solid #d5e6e7; color: var(--auth-accent); font-size: 19px; margin-bottom: 31px; }
.od-login-form-wrap .od-auth-eyebrow { font-size: 9px; letter-spacing: 1.2px; margin-bottom: 8px; }
.od-login-form-wrap h2 { font-size: 35px; letter-spacing: -1.4px; line-height: 1.25; font-weight: 800; margin: 0; }
.od-login-form-wrap .subtitle { margin: 12px 0 31px; font-size: 13px; line-height: 1.85; color: var(--auth-muted); max-width: 350px; }
.od-auth-field { min-width: 0; margin-bottom: 21px; }
.od-auth-field label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 700; }
.od-input-group { position: relative; }
.od-input, .od-auth-field input { display: block; background: #fff; width: 100%; height: 50px; padding: 0 14px; border-radius: 8px; border: 1px solid #d7e0e5; outline: none; color: var(--auth-ink); transition: border-color .15s, box-shadow .15s; font-size: 13px; }
.od-input-group .od-input { padding-left: 43px; padding-right: 47px; }
.od-input::placeholder, .od-auth-field input::placeholder { color: #96a2ab; opacity: 1; }
.od-input:hover, .od-auth-field input:hover { border-color: #bacbd2; }
.od-input:focus, .od-auth-field input:focus { border-color: var(--auth-accent); box-shadow: 0 0 0 3px #087f8c15; }
.icon-left { position: absolute; top: 50%; left: 17px; transform: translateY(-50%); font-size: 12px; color: #8b9ca7; pointer-events: none; }
.od-password-toggle { position: absolute; top: 3px; right: 3px; display: grid; place-items: center; border: 0; background: transparent; color: #8798a3; width: 44px; height: 44px; border-radius: 6px; cursor: pointer; }
.od-password-toggle:hover { background: #eff4f5; color: var(--auth-accent); }
button:focus-visible, a:focus-visible { outline: 3px solid #49aab3; outline-offset: 3px; }
.od-login-btn { display: flex; width: 100%; align-items: center; justify-content: center; gap: 13px; height: 50px; border: 1px solid var(--auth-accent); border-radius: 8px; color: #fff; background: var(--auth-accent); font-size: 13px; font-weight: 800; margin-top: 29px; padding: 0 18px; cursor: pointer; box-shadow: 0 5px 12px #087f8c10; transition: background .15s, box-shadow .15s; }
.od-login-btn i { font-size: 11px; }
.od-login-btn:hover { background: #066b77; border-color: #066b77; box-shadow: 0 5px 14px #087f8c22; }
.od-login-btn:disabled { opacity: .75; cursor: wait; }
.od-login-footer { display: flex; align-items: start; justify-content: center; gap: 8px; margin-top: 25px; color: #80909a; font-size: 10px; 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: #91a0a9; font-size: 9px; line-height: 1.8; }
.od-auth-page-footer > span:first-child { font-weight: 800; color: #6d828f; }
.od-login-error, .od-auth-success { display: flex; align-items: start; gap: 10px; border-radius: 8px; padding: 13px 15px; background: #fdf0ee; border: 1px solid #f2d8d3; color: #9e4542; font-size: 12px; line-height: 1.65; margin-bottom: 24px; overflow-wrap: anywhere; }
.od-login-error > i, .od-auth-success > i { margin-top: 3px; }
.od-auth-success { color: #276e58; background: #edf6f0; border-color: #cfe6d7; }
.od-auth-spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid #ffffff55; border-top-color: #fff; animation: auth-spin .75s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }

/* First installation follows the same visual system, with grouped 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: 550px; padding: 36px 0; }
.odera-setup .od-login-form-wrap h2 { font-size: 29px; letter-spacing: -1.2px; }
.odera-setup .od-login-form-wrap .subtitle { margin-bottom: 27px; max-width: 440px; }
.od-setup-steps { list-style: none; margin: 42px 0 0; padding: 0; display: grid; gap: 28px; }
.od-setup-steps li { display: flex; gap: 16px; align-items: start; }
.od-setup-step-number { display: grid; place-items: center; height: 33px; width: 33px; flex: 0 0 33px; border-radius: 50%; border: 1px solid #597383; font-size: 10px; color: #a6d5d6; font-weight: 700; }
.od-setup-steps strong { display: block; font-size: 13px; line-height: 1.8; font-weight: 600; }
.od-setup-steps p { color: #a3b7c3; font-size: 11px; line-height: 1.8; margin: 4px 0 0; }
.od-setup-section { border: 0; padding: 0; margin: 0 0 25px; min-width: 0; }
.od-setup-section legend { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; width: 100%; padding: 0 0 14px; margin-bottom: 18px; border-bottom: 1px solid var(--auth-line); }
.od-setup-section legend span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #e6eeee; color: var(--auth-accent); font-size: 10px; }
.od-auth-field-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 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: 11px; margin-bottom: 7px; }
.odera-setup .od-auth-field input { height: 44px; font-size: 12px; }
.od-auth-hint { margin: 6px 0 0; color: var(--auth-muted); font-size: 10px; line-height: 1.7; }
.odera-setup .od-login-btn { margin-top: 3px; }
.odera-setup .od-login-footer { margin-top: 17px; }
.od-auth-success-link { color: var(--auth-accent); text-underline-offset: 4px; font-size: 13px; 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: 33px; }
    .od-login-brand h1 { letter-spacing: -1.8px; }
    .od-login-form-side { padding-inline: 30px; }
    .od-desktop-break { display: none; }
    .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: 24px 28px; border-radius: 17px; }
    .od-auth-wordmark { gap: 11px; }
    .od-login-brand-logo { width: 37px; height: 37px; flex-basis: 37px; border-radius: 10px; font-size: 15px; }
    .od-auth-wordmark strong { font-size: 16px; }
    .od-auth-wordmark div > span { font-size: 8px; letter-spacing: 1.2px; }
    .od-login-brand-content, .odera-setup .od-login-brand-content { padding: 30px 0 0; margin: 0; }
    .od-login-brand .od-auth-eyebrow { display: none; }
    .od-login-brand h1, .odera-setup .od-login-brand h1 { font-size: 34px; line-height: 1.18; letter-spacing: -1.3px; }
    .od-brand-description { font-size: 11px; line-height: 1.8; margin-top: 15px; max-width: 420px; }
    .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: 38px 0 40px; }
    .od-auth-form-icon { display: none; }
    .od-login-form-wrap h2 { font-size: 29px; letter-spacing: -1px; }
    .od-login-form-wrap .subtitle { font-size: 12px; margin-top: 10px; margin-bottom: 24px; }
    .od-login-form-wrap .od-auth-eyebrow { font-size: 8px; letter-spacing: 1px; }
    .od-input, .od-auth-field input, .odera-setup .od-auth-field input { font-size: 16px; }
    .od-input::placeholder { font-size: 12px; }
    .od-auth-field { margin-bottom: 19px; }
    .od-auth-page-footer { max-width: 450px; font-size: 8px; }
    .od-login-btn { margin-top: 24px; }
    .odera-setup .od-login-form-wrap { padding: 32px 0; }
    .odera-setup .od-login-form-wrap h2 { font-size: 26px; }
}
@media (max-width: 400px) {
    .od-login-brand { padding: 23px; }
    .od-login-form-side { padding-inline: 17px; }
    .od-login-brand h1, .odera-setup .od-login-brand h1 { font-size: 31px; }
    .od-auth-field-grid { grid-template-columns: minmax(0, 1fr); }
    .od-auth-field-wide { grid-column: auto; }
    .od-auth-page-footer { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation-duration: 1.5s !important; }
}
