/* Sign-in uses the portal's typography and the supplied company signature. */
.login-page {
  --login-muted: #61656b;
  --login-line: #dbdddf;
  --login-accent: #bd3023;
  background: var(--panel);
}
:root[data-theme="dark"] .login-page { --login-muted: #9aa0a8; --login-line: #2f343a; --login-accent: #e0503f; }
:root[data-theme="dark"] .login-story { background: var(--panel-2); }
.login-access > .theme-switch { position: absolute; top: 24px; right: 24px; }
.login-page > main { outline: none; }
.login-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100svh; }
.login-story { display: flex; flex-direction: column; padding: 38px clamp(32px, 4.6vw, 88px) 24px;
  background: #f3f2ee; border-right: 1px solid var(--border); }
.login-brand { display: inline-block; align-self: flex-start; border-radius: 4px; }
.login-brand img { display: block; width: clamp(185px, 18vw, 240px); max-width: 100%; height: auto; }
.login-story-content { width: 100%; max-width: 600px; margin: auto 0; padding: 36px 0 24px; }
.login-eyebrow { margin: 0 0 18px; color: var(--login-accent); font-size: 11px; font-weight: 750;
  letter-spacing: 0.12em; line-height: 1.4; text-transform: uppercase; }
.login-story h2 { margin: 0; font-size: clamp(38px, 4.2vw, 64px); line-height: 1.08; letter-spacing: -0.045em; font-family: var(--font-display); color: var(--text); text-transform: none; }
.login-story-copy { max-width: 420px; margin: 18px 0 24px; color: var(--login-muted); font-size: 15px; line-height: 1.7; }
.login-truck { position: relative; overflow: hidden; margin: 0; border-radius: 14px; background: #252724; }
.login-truck > img { display: block; width: 100%; height: clamp(180px, 17vw, 280px); object-fit: cover; object-position: 50% 58%; }
.login-truck figcaption { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 32px 18px 15px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.74)); color: #fff; font-size: 11px; }
.login-photo-mark { font-weight: 800; letter-spacing: 0.08em; }
.login-capabilities { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; padding: 0; list-style: none;
  color: var(--login-muted); font-size: 12px; }
.login-capabilities li { display: flex; gap: 8px; align-items: center; }
.login-capabilities li::before { content: ''; width: 4px; height: 4px; background: var(--brick-red); border-radius: 50%; }
.login-company { margin: 0; color: var(--login-muted); font-size: 11px; }
.login-access { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 0; padding: 80px 40px 100px; }
.login-form-wrap { width: 100%; max-width: 390px; }
.login-access .login-eyebrow { margin-bottom: 14px; }
.login-access h1 { margin: 0; font: 700 clamp(30px, 3vw, 40px)/1.16 var(--font-display); letter-spacing: -0.035em;
  text-transform: none; color: var(--text); }
.login-intro { margin: 13px 0 34px; color: var(--login-muted); font-size: 15px; line-height: 1.6; }
.login-form { display: grid; gap: 22px; }
.login-field { display: grid; gap: 9px; }
.login-field label { font-size: 13px; font-weight: 650; color: var(--text); }
.login-field input { width: 100%; min-width: 0; min-height: 50px; padding: 13px 15px; border-radius: 9px;
  border: 1px solid var(--login-line); background: var(--panel); color: var(--text); font: 400 16px/1.4 var(--font-body);
  transition: border-color 140ms ease, box-shadow 140ms ease; }
.login-field input::placeholder { color: #85888e; opacity: 1; }
.login-field input:hover { border-color: #a3a6ac; }
.login-field input:focus { border-color: var(--login-accent); outline: 0; box-shadow: 0 0 0 3px rgba(189, 48, 35, 0.12); }
.login-field input[aria-invalid="true"] { border-color: var(--login-accent); }
.login-password-wrap { position: relative; }
.login-password-wrap input { padding-right: 56px; }
.login-password-toggle { position: absolute; right: 4px; top: 3px; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 6px; color: var(--login-muted); background: transparent; padding: 0; cursor: pointer; }
.login-password-toggle:hover { color: var(--text); background: var(--panel-2); }
.login-password-toggle svg { width: 20px; height: 20px; }
.login-field-feedback { min-height: 16px; margin: -3px 0 -10px; color: var(--login-muted); font-size: 12px; line-height: 1.4; }
.login-submit { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 50px;
  padding: 12px 20px; border: 1px solid transparent; border-radius: 9px; background: var(--login-accent); color: #fff;
  font: 650 15px/1.5 var(--font-body); cursor: pointer; transition: background 140ms ease, opacity 140ms ease; }
.login-submit:hover { background: #a5291e; }
.login-submit:active { background: #94251b; }
.login-submit:disabled { cursor: wait; opacity: 0.7; }
.login-submit svg { width: 18px; height: 18px; }
.login-help { margin-top: 19px; text-align: center; }
.login-help-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 10px;
  background: none; color: var(--login-muted); border: 0; border-radius: 6px; font: 500 13px/1.5 var(--font-body); cursor: pointer; }
.login-help-toggle:hover { color: var(--text); }
.login-help-toggle svg { width: 14px; height: 14px; }
.login-help-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.login-help p { margin: 8px 0 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 9px;
  color: var(--login-muted); background: var(--panel-2); text-align: left; font-size: 13px; line-height: 1.6; }
.login-private { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 28px;
  padding-top: 24px; border-top: 1px solid var(--border); font-size: 11px; color: var(--login-muted); }
.login-private svg { width: 16px; height: 16px; flex-shrink: 0; }
.login-footer { position: absolute; bottom: 25px; left: 20px; right: 20px; text-align: center; color: var(--login-muted); font-size: 11px; }
.login-footer span { margin: 0 8px; opacity: 0.5; }
.login-error, .login-notice { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid #ebc6c0; border-radius: 9px;
  background: #fff2ef; color: #9b291f; font-size: 13px; line-height: 1.5; margin: -10px 0 24px; }
.login-error p { margin: 0; }
.login-error svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.login-error:focus { outline: 2px solid var(--login-accent); outline-offset: 3px; }
.login-page button:focus-visible, .login-page a:focus-visible { outline: 2px solid var(--login-accent); outline-offset: 4px; }
:root[data-theme="dark"] .login-page { --login-muted: #a7adb4; --login-line: #454a50; --login-accent: #ee6658; }
:root[data-theme="dark"] .login-story { background: #141719; }
:root[data-theme="dark"] .login-submit { background: #bd3023; }
:root[data-theme="dark"] .login-submit:hover { background: #a5291e; }
:root[data-theme="dark"] .login-error, :root[data-theme="dark"] .login-notice { border-color: #683a33; background: #2c1c1a; color: #ffb1a6; }
@media (min-width: 1600px) { .login-story-content { margin-left: auto; margin-right: auto; } }
@media (max-width: 1050px) {
  .login-story { padding-left: 32px; padding-right: 32px; }
  .login-story h2 { font-size: 40px; }
  .login-access { padding-left: 32px; padding-right: 32px; }
  .login-capabilities { gap: 8px 14px; font-size: 11px; }
  .login-desktop-break { display: none; }
}
@media (max-width: 760px) {
  .login-layout { display: block; }
  .login-story { display: block; padding: 28px 24px 0; border: 0; background: var(--panel); }
  .login-brand img { width: 198px; }
  .login-story-content, .login-company { display: none; }
  .login-access { display: block; padding: 58px 24px 30px; min-height: auto; }
  .login-form-wrap { margin: 0 auto; }
  .login-access h1 { font-size: 32px; }
  .login-intro { margin-bottom: 30px; }
  .login-private { margin-top: 24px; }
  .login-footer { position: static; margin-top: 48px; }
}
@media (max-width: 360px) {
  .login-story { padding-left: 20px; padding-right: 20px; }
  .login-access { padding-left: 20px; padding-right: 20px; padding-top: 44px; }
  .login-private { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-page *, .login-page *::before, .login-page *::after { transition: none; }
}
@media (forced-colors: active) {
  .login-submit, .login-field input { border: 1px solid ButtonText; }
}
