:root {
    --auth-navy: #142c43;
    --auth-blue: #1578af;
    --auth-blue-dark: #11658f;
    --auth-muted: #66788b;
    --auth-border: #dbe5ed;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body.fleet-auth { min-width: 320px; min-height: 100vh; margin: 0; background: #f4f8fb; color: var(--auth-navy); font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: inherit; }

.auth-shell { display: grid; grid-template-columns: minmax(0, 47%) minmax(0, 53%); min-height: 100vh; min-height: 100dvh; }
.auth-visual { position: relative; min-height: 100%; overflow: hidden; background: #10283f; color: #fff; }
.auth-visual-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 67% center; }
.auth-visual::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, rgba(9, 29, 49, .58) 0%, rgba(14, 41, 65, .03) 34%, rgba(12, 34, 54, .18) 55%, rgba(7, 27, 45, .89) 100%); pointer-events: none; }
.auth-visual-content { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; min-height: 100dvh; padding: clamp(29px, 4.4vw, 70px); }
.auth-brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; text-decoration: none; }
.auth-brand:hover { text-decoration: none; }
.auth-brand-mark { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .42); border-radius: 12px; background: rgba(255, 255, 255, .14); font-size: 19px; backdrop-filter: blur(8px); }
.auth-brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.auth-brand-copy strong { font-size: 24px; font-weight: 800; letter-spacing: .05em; }
.auth-brand-copy small { margin-top: 5px; font-size: 9px; font-weight: 700; letter-spacing: .22em; }
.auth-brand-light { color: #fff; }
.auth-brand-light:hover { color: #fff; }
.auth-visual-message { max-width: 535px; }
.auth-visual-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 17px; color: #bfe3f4; font-size: 11px; font-weight: 800; letter-spacing: .19em; }
.auth-kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ec6ed; box-shadow: 0 0 0 5px rgba(78, 198, 237, .16); }
.auth-visual-message h2 { margin: 0; font-size: clamp(36px, 4vw, 65px); font-weight: 700; letter-spacing: -.045em; line-height: 1.04; text-wrap: balance; }
.auth-visual-message h2 span { color: #bfe9fa; }
.auth-visual-message p { max-width: 390px; margin: 19px 0 0; color: #dcecf5; font-size: 16px; line-height: 1.55; }
.auth-visual-divider { width: 65px; height: 2px; margin: 27px 0 16px; background: #62c8e9; }
.auth-visual-caption { color: #c4dbe8; font-size: 12px; font-weight: 600; letter-spacing: .07em; }
.auth-visual-caption span { padding: 0 8px; color: #7dcde9; }

.auth-form-panel { display: flex; flex-direction: column; min-width: 0; min-height: 100%; padding: 35px clamp(32px, 5.1vw, 90px) 29px; background: #fff; }
.auth-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }
.auth-panel-product { display: none; align-items: center; gap: 8px; color: var(--auth-navy); font-size: 12px; font-weight: 700; white-space: nowrap; }
.auth-panel-product-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: #e9f3fb; color: var(--auth-blue); }
.auth-panel-product-divider { width: 1px; height: 14px; margin: 0 3px; background: #cbd9e3; }
.auth-switch { width: 100%; color: var(--auth-muted); font-size: 13px; text-align: right; }
.auth-switch a { margin-left: 4px; color: var(--auth-blue); font-weight: 700; text-decoration: none; white-space: nowrap; }
.auth-switch a:hover, .auth-switch a:focus-visible, .auth-text-link:hover, .auth-form-footnote a:hover { color: var(--auth-blue-dark); text-decoration: underline; }
.auth-switch i { margin-left: 3px; font-size: 10px; }
.auth-form-wrap { width: min(100%, 440px); margin: auto; padding: 45px 0 38px; }
.auth-form-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px; color: var(--auth-blue); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.auth-form-eyebrow i { font-size: 12px; }
.auth-form-heading h1 { margin: 0; color: var(--auth-navy); font-size: clamp(30px, 2.7vw, 39px); font-weight: 800; letter-spacing: -.035em; line-height: 1.12; }
.auth-form-heading p { margin: 12px 0 0; color: var(--auth-muted); font-size: 15px; line-height: 1.5; }
.auth-form { margin-top: 34px; }
.auth-field { margin: 0 0 22px; }
.auth-field label, .auth-label-row label { display: block; margin-bottom: 8px; color: #2a4054; font-size: 13px; font-weight: 700; }
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.auth-input-wrap { position: relative; }
.auth-input-icon { position: absolute; top: 50%; left: 16px; z-index: 1; width: 16px; color: #8195a5; font-size: 14px; text-align: center; transform: translateY(-50%); pointer-events: none; }
.auth-input { display: block; width: 100%; height: 50px; padding: 0 15px 0 45px; border: 1px solid var(--auth-border); border-radius: 9px; outline: none; background: #fff; color: var(--auth-navy); font-size: 14px; transition: border-color .2s ease, box-shadow .2s ease; }
.auth-input::placeholder { color: #9aabba; }
.auth-input:hover { border-color: #b9cedb; }
.auth-input:focus { border-color: #5ca8cb; box-shadow: 0 0 0 4px rgba(21, 120, 175, .12); }
.auth-input.is-invalid { border-color: #cf696e; }
.auth-input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(207, 105, 110, .12); }
.auth-password-input { padding-right: 51px; }
.auth-password-toggle { position: absolute; top: 50%; right: 8px; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #8296a7; cursor: pointer; transform: translateY(-50%); }
.auth-password-toggle:hover, .auth-password-toggle:focus-visible { outline: none; background: #eaf3f8; color: var(--auth-blue); }
.auth-field-error { display: block; margin-top: 7px; color: #b6424b; font-size: 12px; line-height: 1.35; }
.auth-field-hint { display: block; margin-top: 7px; color: #8496a5; font-size: 12px; }
.auth-text-link { color: var(--auth-blue); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.auth-checkbox { display: inline-flex; align-items: center; gap: 9px; margin: 1px 0 28px; color: #526779; font-size: 13px; font-weight: 600; cursor: pointer; }
.auth-checkbox input { width: 16px; height: 16px; margin: 0; accent-color: var(--auth-blue); cursor: pointer; }
.auth-submit { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px; padding: 11px 20px; border: 1px solid var(--auth-blue); border-radius: 9px; background: var(--auth-blue); box-shadow: 0 8px 20px rgba(21, 120, 175, .2); color: #fff; font-size: 14px; font-weight: 800; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.auth-submit:hover { border-color: var(--auth-blue-dark); background: var(--auth-blue-dark); box-shadow: 0 10px 23px rgba(21, 120, 175, .24); transform: translateY(-1px); }
.auth-submit:focus-visible { outline: 3px solid rgba(21, 120, 175, .28); outline-offset: 3px; }
.auth-submit i { font-size: 12px; }
.auth-form-footnote { margin: 21px 0 0; color: #8394a2; font-size: 12px; text-align: center; }
.auth-form-footnote a { color: var(--auth-blue); font-weight: 700; text-decoration: none; }
.auth-alert { margin-top: 26px; padding: 12px 14px; border-radius: 8px; font-size: 13px; line-height: 1.4; }
.auth-alert-success { border: 1px solid #c9ead7; background: #edf9f1; color: #236d44; }
.auth-panel-bottom { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; color: #8a9aa7; font-size: 11px; text-align: center; }
.auth-panel-bottom i { color: #79a2b8; }

@media (max-width: 1100px) {
    .auth-shell { grid-template-columns: minmax(0, 43%) minmax(0, 57%); }
    .auth-visual-message h2 { font-size: clamp(32px, 4vw, 48px); }
    .auth-visual-content { padding: 34px; }
    .auth-form-panel { padding-left: 38px; padding-right: 38px; }
}

@media (max-width: 760px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { min-height: 270px; }
    .auth-visual-photo { object-position: center 56%; }
    .auth-visual-content { min-height: 270px; padding: 25px 30px; }
    .auth-visual-message h2 { font-size: 34px; }
    .auth-visual-message p { margin-top: 8px; font-size: 13px; }
    .auth-visual-kicker, .auth-visual-divider, .auth-visual-caption { display: none; }
    .auth-form-panel { min-height: 550px; padding: 25px 30px 28px; }
    .auth-panel-product { display: inline-flex; }
    .auth-form-wrap { padding: 42px 0; }
}

@media (max-width: 520px) {
    .auth-visual, .auth-visual-content { min-height: 225px; }
    .auth-visual-content { padding: 20px 22px; }
    .auth-brand-mark { width: 36px; height: 36px; flex-basis: 36px; font-size: 16px; }
    .auth-brand-copy strong { font-size: 20px; }
    .auth-brand-copy small { font-size: 8px; }
    .auth-visual-message h2 { font-size: 28px; }
    .auth-visual-message p { display: none; }
    .auth-form-panel { padding: 21px 22px 26px; }
    .auth-panel-top { align-items: flex-start; }
    .auth-panel-product { font-size: 0; }
    .auth-panel-product-icon { font-size: 13px; }
    .auth-panel-product-divider { display: none; }
    .auth-switch { font-size: 12px; }
    .auth-switch span { display: block; }
    .auth-form-wrap { padding-top: 38px; }
    .auth-form { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-input, .auth-submit { transition: none; }
    .auth-submit:hover { transform: none; }
}
