:root {
  color-scheme: light;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  --forest: #132e27;
  --ink: #20352d;
  --muted: #7b8981;
  --lime: #b5f56b;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #e8ede6; color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button, input, label { touch-action: manipulation; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid #639843; outline-offset: 4px; }
.login-shell { width: calc(100% - 40px); max-width: 1680px; min-height: min(820px, calc(100svh - 40px)); margin: 20px auto; display: grid; grid-template-columns: 1.12fr 1fr; border-radius: 24px; overflow: hidden; background: #fafbf8; box-shadow: 0 14px 50px #1930240c; }

.journey-panel { position: relative; min-height: 760px; overflow: hidden; background: var(--forest); color: #f4f8ee; padding: 45px 50px 35px; display: flex; flex-direction: column; isolation: isolate; }
.journey-panel::after { content: ""; width: 450px; height: 450px; position: absolute; right: -200px; top: -220px; border: 1px solid #c2dbb710; border-radius: 50%; z-index: -1; box-shadow: 0 0 0 60px #c2dbb705, 0 0 0 120px #c2dbb704; }
.journey-grid { position: absolute; inset: 0; z-index: -1; opacity: .3; background-image: linear-gradient(#90ba950d 1px, transparent 1px), linear-gradient(90deg, #90ba950d 1px, transparent 1px); background-size: 58px 58px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-symbol { color: var(--lime); display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #b5f56b40; border-radius: 10px; background: #b5f56b0a; }
.brand-symbol svg { width: 31px; height: 31px; }
.brand-name { font-size: 19px; line-height: 1.1; font-weight: 730; letter-spacing: .13em; }
.brand-name > span { margin-left: 7px; font-weight: 400; color: #b2c7bb; }
.journey-copy { margin-top: 65px; position: relative; z-index: 2; pointer-events: none; }
.eyebrow { margin: 0 0 20px; display: flex; align-items: center; gap: 9px; color: #a6beb0; font-size: 9px; letter-spacing: .18em; font-weight: 650; }
.eyebrow > span { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
h1 { margin: 0; font-size: clamp(40px, 4.05vw, 63px); line-height: 1.25; font-weight: 600; letter-spacing: -.045em; }
h1 em { color: var(--lime); font-style: normal; }
.journey-description { margin: 20px 0 0; font-size: 13px; line-height: 1.9; letter-spacing: .035em; color: #b2c4b9; }
.scene-wrap { height: 367px; margin-top: -48px; margin-right: -50px; margin-left: -50px; position: relative; flex: 1; min-height: 285px; }
.road-scene { position: absolute; display: block; width: 102%; max-width: 1000px; height: auto; left: -1%; bottom: -24%; pointer-events: none; }
.scene-caption { position: absolute; left: 50px; bottom: 19px; display: flex; align-items: center; gap: 7px; font-size: 8px; letter-spacing: .15em; color: #91aa99; }
.scene-caption > span { width: 14px; height: 1px; background: #88ad81; }
.journey-footer { position: relative; z-index: 2; display: flex; align-items: center; gap: 17px; padding-top: 23px; border-top: 1px solid #a6c7ad25; }
.route-stop { display: flex; align-items: flex-start; gap: 9px; white-space: nowrap; }
.route-stop i { width: 6px; height: 6px; border: 1px solid var(--lime); border-radius: 50%; margin-top: 5px; }
.route-stop:first-child i, .route-stop:last-child i { background: var(--lime); }
.route-stop > span { font-size: 11px; color: #dce7dd; }
.route-stop small { display: block; font-size: 8px; color: #839f8e; letter-spacing: .16em; margin-top: 6px; }
.route-line { height: 1px; flex: 1; max-width: 80px; margin-top: -15px; background: #57705f; position: relative; }
.route-line::after { content: ""; width: 4px; height: 4px; border-top: 1px solid #78957c; border-right: 1px solid #78957c; transform: rotate(45deg); position: absolute; right: 0; top: -1.5px; }

.form-panel { padding: 39px clamp(35px, 5.9vw, 99px) 30px; display: flex; flex-direction: column; position: relative; }
.login-language-control { position: absolute; top: 28px; right: 30px; z-index: 5; }
.workspace-label { display: flex; align-items: center; justify-content: flex-start; gap: 8px; font-size: 10px; color: #8b978e; letter-spacing: .13em; max-width: calc(100% - 135px); min-height: 26px; }
.workspace-label > span { width: 5px; height: 5px; background: #7ab349; border-radius: 50%; }
.form-content { width: 100%; max-width: 380px; margin: auto; padding: 63px 0 48px; }
.welcome-mark { height: 44px; width: 44px; background: #edf3e7; border: 1px solid #e2eadb; border-radius: 13px; display: grid; place-items: center; color: #557945; margin-bottom: 24px; }
.welcome-mark svg { height: 26px; width: 26px; }
.form-eyebrow { margin: 0 0 10px; color: #82917f; font-size: 9px; font-weight: 650; letter-spacing: .15em; }
h2 { font-size: 32px; font-weight: 650; letter-spacing: -.045em; line-height: 1.3; margin: 0; }
.form-description { font-size: 12px; line-height: 1.7; color: #7e8c83; margin: 12px 0 33px; }
.field + .field { margin-top: 20px; }
.field label { display: block; color: #4d6154; font-size: 12px; font-weight: 600; margin-bottom: 9px; }
.input-wrap { position: relative; }
.field-icon { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); width: 18px; height: 18px; color: #98a58f; pointer-events: none; }
.field input { width: 100%; height: 51px; padding: 0 15px 0 44px; border: 1px solid #dce3d7; border-radius: 9px; background: #fff; color: #263e30; font-size: 14px; transition: box-shadow .18s, border-color .18s; }
.field input::placeholder { color: #a0aaa1; font-size: 12px; }
.field input:hover { border-color: #bdcbb5; }
.field input:focus { outline: none; border-color: #83ad60; box-shadow: 0 0 0 3px #a7d47b24; }
.field input[aria-invalid="true"] { border-color: #cc8c75; }
.password-wrap input { padding-right: 50px; }
.password-toggle { position: absolute; right: 5px; top: 5px; width: 41px; height: 41px; display: grid; place-items: center; padding: 0; color: #96a08e; border: none; background: transparent; border-radius: 6px; }
.password-toggle:hover { color: #4a6d3e; background: #f4f7ef; }
.password-toggle svg { width: 19px; height: 19px; }
.eye-closed, .password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-closed { display: block; }
.form-options { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 17px; }
.remember-option { display: inline-flex; align-items: center; gap: 8px; color: #7b897d; font-size: 11px; cursor: pointer; padding: 4px 0; }
.remember-option input { margin: 0; width: 15px; height: 15px; accent-color: #2e5426; flex: 0 0 15px; cursor: pointer; }
.remember-period { color: #a0aa9b; font-size: 10px; }
.login-message { min-height: 24px; margin: 9px 0 9px; color: #b4533b; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.submit-button { width: 100%; min-height: 51px; border: 1px solid #a3df5c; border-radius: 9px; background: var(--lime); color: #23391b; padding: 0 18px; font-size: 13px; font-weight: 650; display: flex; align-items: center; justify-content: center; gap: 18px; box-shadow: 0 5px 14px #b5f56b20; transition: background .18s, transform .18s, box-shadow .18s; }
.submit-button:hover { background: #c1fa82; box-shadow: 0 7px 20px #83b25225; transform: translateY(-1px); }
.submit-button:active { transform: translateY(0); }
.submit-arrow { height: 18px; width: 18px; }
.submit-spinner { width: 17px; height: 17px; border: 2px solid #35502c40; border-top-color: #35502c; border-radius: 50%; display: none; animation: spin .7s linear infinite; }
.submit-button:disabled { cursor: wait; background: #b6e78d; border-color: #abd980; transform: none; box-shadow: none; }
.submit-button:disabled .submit-spinner { display: block; }
.submit-button:disabled .submit-arrow { display: none; }
.authorized-note { display: flex; align-items: center; justify-content: center; gap: 6px; color: #96a08f; font-size: 10px; margin-top: 21px; }
.authorized-note svg { width: 14px; height: 14px; }
.noscript-message { color: #b4533b; font-size: 12px; line-height: 1.7; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 9px; letter-spacing: .05em; color: #9aa595; }
.form-footer > span:first-child { font-size: 8px; letter-spacing: .16em; font-weight: 600; }
html[lang="en"] .journey-copy h1, html[lang="sw"] .journey-copy h1 { font-size: clamp(35px, 3.65vw, 57px); }
html[lang="en"] .journey-description, html[lang="sw"] .journey-description { letter-spacing: 0; }
html[lang="sw"] .form-options { align-items: flex-start; }
html[lang="sw"] .remember-period { white-space: nowrap; padding-top: 5px; }
html[lang="sw"] .route-stop > span { white-space: normal; }
html[lang="sw"] .journey-footer { gap: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 1500px) {
  .login-shell { min-height: min(920px, calc(100svh - 60px)); width: calc(100% - 60px); margin: 30px auto; }
  .journey-panel { padding: 54px 64px 40px; }
  .journey-copy { margin-top: 85px; }
  .scene-wrap { margin-left: -64px; margin-right: -64px; }
  .scene-caption { left: 64px; }
}
@media (max-width: 1100px) {
  .login-shell { grid-template-columns: 1.02fr 1fr; }
  .journey-panel { padding-left: 32px; padding-right: 32px; }
  .scene-wrap { margin-right: -32px; margin-left: -32px; }
  .scene-caption { left: 32px; }
  .form-panel { padding-left: 36px; padding-right: 36px; }
  .journey-footer { gap: 12px; }
}
@media (max-width: 800px) {
  body { background: #fafbf8; }
  .login-shell { width: 100%; min-height: 100svh; margin: 0; border-radius: 0; display: flex; flex-direction: column; box-shadow: none; }
  .journey-panel { min-height: 270px; padding: 26px 32px 27px; display: block; }
  .brand { position: relative; z-index: 3; }
  .brand-symbol { width: 32px; height: 32px; border-radius: 8px; }
  .brand-symbol svg { width: 25px; height: 25px; }
  .brand-name { font-size: 15px; }
  .journey-copy { margin-top: 28px; max-width: 60%; }
  .eyebrow { font-size: 7px; letter-spacing: .1em; margin-bottom: 10px; }
  h1 { font-size: 33px; line-height: 1.28; }
  h1 br { display: block; }
  .journey-description { margin-top: 9px; font-size: 10px; line-height: 1.7; max-width: 210px; }
  .journey-description br { display: none; }
  .scene-wrap { position: absolute; inset: 12px -60px 0 38%; margin: 0; min-height: 0; height: auto; z-index: 0; pointer-events: none; }
  .road-scene { width: 500px; max-width: none; bottom: -42px; left: -35px; }
  .scene-caption, .journey-footer { display: none; }
  .form-panel { flex: 1; padding: 26px 32px 22px; }
  .login-language-control { top: 18px; right: 26px; }
  .workspace-label { font-size: 9px; }
  .form-content { max-width: 420px; padding: 22px 0 43px; }
  .welcome-mark { display: none; }
  .form-eyebrow { margin-bottom: 9px; }
  h2 { font-size: 29px; }
  .form-description { margin-bottom: 26px; font-size: 12px; }
  .field input { height: 52px; font-size: 16px; }
  .password-toggle { top: 5px; height: 42px; width: 42px; }
  .field + .field { margin-top: 19px; }
  .form-footer { max-width: 420px; width: 100%; margin: 0 auto; }
}
@media (max-width: 600px) {
  .journey-panel { min-height: 300px; }
  .journey-description { max-width: 180px; }
  .scene-wrap { inset: 0; }
  /* Align the truck rather than the SVG's transparent right/bottom gutters. */
  .road-scene { width: clamp(270px, 76.4vw, 420px); left: auto; right: 20px; bottom: 18px; transform: translate(18.333%, 27.778%); }
}
@media (max-width: 440px) {
  .journey-panel { padding: 23px 24px; }
  .journey-copy { max-width: 66%; margin-top: 25px; }
  .eyebrow { font-size: 6px; letter-spacing: .07em; gap: 6px; }
  .eyebrow > span { width: 4px; height: 4px; }
  h1 { font-size: 29px; }
  h1 br { display: block; }
  .journey-description { max-width: 159px; font-size: 9px; line-height: 1.7; }
  .form-panel { padding: 23px 24px 21px; }
  .login-language-control { top: 15px; right: 20px; }
  .workspace-label { max-width: 55%; min-height: 32px; font-size: 8px; letter-spacing: .05em; padding-right: 0; }
  html[lang="en"] .journey-copy h1, html[lang="sw"] .journey-copy h1 { font-size: 27px; }
  .workspace-label { font-size: 8px; }
  .form-content { padding-top: 24px; padding-bottom: 35px; }
  .form-description { font-size: 11px; }
}
@media (max-width: 350px) {
  .journey-panel { padding-left: 20px; padding-right: 20px; }
  .form-panel { padding-left: 20px; padding-right: 20px; }
  .brand-name { font-size: 13px; }
  .journey-copy { max-width: 70%; }
  h1 { font-size: 27px; }
  .road-scene { right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
