:root { color-scheme: light; }
* { box-sizing: border-box; }
html { min-height: 100%; }
body { min-height: 100vh; margin: 0; background: #fff; color: #1e293b; font-family: "Mallory", Arial, sans-serif; font-weight: 300; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
.login-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(450px, .91fr); width: 100%; min-height: 100vh; min-height: 100svh; overflow: hidden; background: #fff; }
/* Truck photo by Hamid Ouan: https://www.pexels.com/photo/a-truck-on-a-road-16180770/ */
.login-brand { display: flex; min-width: 0; flex-direction: column; justify-content: space-between; padding: clamp(30px, 4.5vw, 66px); background-color: #4f46e5; background-image: linear-gradient(100deg, rgba(49, 46, 129, .84) 0%, rgba(49, 46, 129, .67) 50%, rgba(49, 46, 129, .20) 72%, rgba(49, 46, 129, .03) 100%), linear-gradient(135deg, rgba(79, 70, 229, .45), rgba(67, 56, 202, .12)), url("../images/login-truck-orange.97cf54483ea7.png"); background-position: center, center, center 58%; background-size: cover; background-blend-mode: normal, soft-light, normal; color: #fff; }
.login-brand-top { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.login-logo { display: block; width: auto; height: 30px; filter: brightness(0) invert(1); }
.login-brand-message { max-width: 490px; padding: 60px 0; }
.login-brand-line { display: block; width: 54px; height: 4px; margin-bottom: 28px; border-radius: 4px; background: #fff; }
.login-brand-message h2 { max-width: 480px; margin: 0 0 20px; color: #fff; font-size: clamp(35px, 3.9vw, 56px); font-weight: 600; letter-spacing: -.045em; line-height: 1.08; }
.login-brand-message > p:last-child { max-width: 390px; margin: 0; color: rgba(255, 255, 255, .85); font-size: 16px; line-height: 1.65; }
.login-brand-footer { margin: 0; color: rgba(255, 255, 255, .75); font-size: 12px; }
.login-panel { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: clamp(30px, 5vw, 76px); }
.login-form-wrap { width: min(100%, 400px); margin: auto; }
.login-panel h1 { margin: 0 0 6px; color: #172b3e; font-size: clamp(30px, 2.9vw, 38px); font-weight: 600; letter-spacing: -.035em; line-height: 1.16; }
.login-intro { margin: 0 0 38px; color: #66788a; font-size: 14px; line-height: 1.5; }
.login-form { display: grid; gap: 22px; }
.login-field { display: grid; gap: 8px; }
.login-field label { color: #33465a; font-size: 13px; font-weight: 600; }
.login-field input { width: 100%; height: 48px; border: 1px solid #b9c6d2; border-radius: 9px; padding: 0 14px; background: #fff; color: #152a3d; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; }
.login-field input:hover { border-color: #879bac; }
.login-field input:focus { border-color: #6c52ff; box-shadow: 0 0 0 3px rgba(108, 82, 255, .16); }
.login-field input[aria-invalid="true"] { border-color: #c55242; }
.login-password-wrap { position: relative; }
.login-password-wrap input { padding-right: 74px; }
.login-password-toggle { position: absolute; top: 5px; right: 5px; min-width: 58px; height: 38px; border: 0; border-radius: 6px; background: transparent; color: #42617a; font-size: 12px; font-weight: 600; }
.login-password-toggle:hover { background: #edf3f7; }
.login-password-toggle:focus-visible, .login-submit:focus-visible { outline: 3px solid rgba(108, 82, 255, .5); outline-offset: 2px; }
.login-submit { display: flex; width: 100%; height: 48px; align-items: center; justify-content: center; gap: 12px; margin-top: 6px; border: 1px solid #24394b; border-radius: 9px; background: #24394b; color: #fff; font-size: 14px; font-weight: 600; transition: background .15s, transform .15s; }
.login-submit:hover { background: #34546d; }
.login-submit:active { transform: translateY(1px); }
.login-submit span { font-size: 18px; font-weight: 300; line-height: 1; }
.login-error-banner { margin: 0 0 23px; border: 1px solid #e9b4aa; border-radius: 9px; background: #fff4f1; padding: 11px 13px; color: #a23f30; font-size: 13px; line-height: 1.5; }
.login-error-banner p { margin: 0; }
.login-field-error { color: #a23f30; font-size: 12px; }
.login-field-error ul { margin: 0; padding-left: 18px; }
.login-mobile-brand { display: none; }
@media (max-width: 900px) { .login-shell { grid-template-columns: minmax(0, 1fr) minmax(390px, .95fr); } .login-brand { padding: 34px; } .login-panel { padding: 34px; } }
@media (max-height: 720px) and (min-width: 681px) { .login-brand { padding-top: 36px; padding-bottom: 36px; } .login-brand-message { padding: 24px 0; } .login-panel { padding-top: 30px; padding-bottom: 30px; } }
@media (max-width: 680px) { .login-shell { display: flex; flex-direction: column; } .login-brand { min-height: 88px; padding: 28px clamp(22px, 6vw, 38px); background-image: none; } .login-brand-message, .login-brand-footer { display: none; } .login-panel { min-height: calc(100svh - 88px); padding: 28px clamp(22px, 6vw, 38px); } .login-form-wrap { margin: auto; } }
@media (max-width: 380px) { .login-mobile-brand { margin-bottom: 44px; } .login-intro { margin-bottom: 28px; } .login-form { gap: 18px; } }
@media (prefers-reduced-motion: reduce) { .login-field input, .login-submit { transition: none; } }
