/* Login screen — fleetomizer_login_rev mockup.
   Loaded only when the user is signed out. */

body.login-page {
  --blue: #2087F7;
  --blue2: #1F85F4;
  --navy: #05245A;
  --ink: #10213b;
  --muted: #718096;
  --line: #dce4ee;
  --soft: #f5f8fc;
  --white: #fff;
  --success: #34B75B;
  margin: 0;
  padding: 0 !important;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

body.login-page * { box-sizing: border-box; }

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(430px, .9fr);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  color: #fff;
  background: linear-gradient(120deg, #1f85f4 0%, #1a78e0 48%, #1570cc 100%);
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 34%, rgba(255, 255, 255, .16), transparent 35%),
    linear-gradient(to top, rgba(17, 104, 199, .42), transparent 55%);
  pointer-events: none;
}

.finance-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .72;
}

.finance-art svg { width: 100%; height: 100%; display: block; }
.chart-grid line { stroke: rgba(255, 255, 255, .10); stroke-width: 1; }
.chart-line { fill: none; stroke: rgba(255, 255, 255, .34); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.chart-line.secondary { stroke: rgba(255, 255, 255, .18); stroke-width: 1.4; }
.chart-area { fill: url(#chartFade); }
.chart-dot { fill: rgba(255, 255, 255, .65); }
.finance-card { fill: rgba(255, 255, 255, .055); stroke: rgba(255, 255, 255, .12); stroke-width: 1; }
.finance-bar { fill: rgba(255, 255, 255, .18); }
.finance-bar.strong { fill: rgba(255, 255, 255, .30); }

.kpi-silhouettes {
  position: absolute;
  right: 6%;
  top: 16%;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 150px);
  gap: 12px;
  pointer-events: none;
  opacity: .58;
}

.kpi-card {
  height: 86px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(4, 56, 118, .06);
}

.kpi-head { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.kpi-icon { width: 17px; height: 17px; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 5px; }
.kpi-label { height: 6px; width: 72px; border-radius: 6px; background: rgba(255, 255, 255, .38); }
.kpi-value { height: 10px; width: 88px; border-radius: 8px; background: rgba(255, 255, 255, .58); margin-bottom: 9px; }
.kpi-meta { display: flex; gap: 6px; align-items: center; }
.kpi-meta:before { content: ""; width: 28px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .30); }
.kpi-meta:after { content: ""; width: 42px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .17); }

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 52px clamp(42px, 5vw, 86px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-icon {
  width: 69px;
  height: 69px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-logo {
  height: 39px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, .96);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.hero-copy { margin: auto 0; max-width: 650px; padding: 72px 0; }
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8fd1ff;
  margin-bottom: 18px;
}

body.login-page h1 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.03;
  letter-spacing: -.045em;
  margin: 0 0 24px;
  font-weight: 720;
  color: #fff;
}

.hero-copy p {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.7;
  color: rgba(255, 255, 255, .82);
  max-width: 590px;
  margin: 0;
}

.capabilities { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.capability {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .20);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
}

.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
}

.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px clamp(34px, 5vw, 78px);
  background: linear-gradient(145deg, #fff 0%, #fbfcfe 100%);
}

.auth-wrap { width: min(100%, 440px); }
.mobile-brand { display: none; color: var(--navy); margin-bottom: 45px; }

.auth-icon {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
  margin-bottom: 28px;
}

body.login-page .auth h2 {
  font-size: 32px;
  letter-spacing: -.035em;
  margin: 0 0 9px;
  color: #0c2344;
  font-weight: 650;
  line-height: 1.2;
}

.auth-subtitle { margin: 0 0 34px; color: #748197; font-size: 15px; line-height: 1.55; }
.field { margin-bottom: 19px; }
.field-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 12px; }

body.login-page label {
  display: inline;
  margin: 0;
  max-width: none;
  font-size: 13px;
  font-weight: 650;
  color: #2b3d56;
}

.forgot {
  font-size: 12px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.forgot:hover,
.forgot:focus { color: #126cc7; text-decoration: none; }

.input-wrap { position: relative; }

.input-wrap input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 46px 0 15px;
  font-size: 14px;
  color: #172b46;
  outline: none;
  box-shadow: 0 1px 2px rgba(15, 35, 65, .025);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.input-wrap input:focus {
  border-color: #69aff9;
  box-shadow: 0 0 0 4px rgba(32, 135, 247, .10);
}

.input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa8ba;
  background: none;
  border: 0;
  padding: 5px;
  cursor: default;
  font-size: 15px;
  line-height: 1;
}

button.input-icon { cursor: pointer; }

.options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 5px 0 24px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #627187;
  cursor: pointer;
  font-weight: 500;
}

.remember input { accent-color: var(--blue); margin: 0; }

.signin,
.request {
  -webkit-appearance: none;
  appearance: none;
  line-height: 1;
  font-family: inherit;
}

.signin {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--blue), #1678d9);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(32, 135, 247, .20);
  transition: transform .18s ease, box-shadow .18s ease;
}

.signin:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 26px rgba(32, 135, 247, .25);
  color: #fff;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 27px 0;
  color: #a1adbc;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.divider:before,
.divider:after { content: ""; height: 1px; background: #e6ebf2; flex: 1; }

.request {
  width: 100%;
  height: 48px;
  border: 1px solid #cfd9e5;
  border-radius: 8px;
  background: #fff;
  color: #27415f;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}

.request:hover { border-color: #a9bed6; background: #f9fbfd; color: #27415f; }

.auth-footer {
  margin-top: 42px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #9aa5b4;
  font-size: 11px;
}

.auth-footer a { color: #8794a6; text-decoration: none; }
.auth-footer a:hover,
.auth-footer a:focus { color: var(--blue); text-decoration: none; }
.links { display: flex; gap: 15px; }

body.login-page .alert {
  border-radius: 8px;
  font-size: 13px;
  margin: 0 0 18px;
  padding: 12px 14px;
}

@media (max-width: 1250px) {
  .kpi-silhouettes { right: 4%; top: 14%; grid-template-columns: repeat(2, 130px); }
  .kpi-card { height: 78px; padding: 12px; }
  .kpi-label { width: 58px; }
  .kpi-value { width: 74px; }
}

@media (max-width: 980px) {
  .login-shell { grid-template-columns: 1fr; }
  .hero { display: none; }
  .auth { padding: 45px 24px; }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 750;
    font-size: 25px;
  }
  .mobile-brand .brand-mark {
    width: 38px;
    height: 38px;
    border-color: var(--blue);
    color: var(--blue);
    font-size: 14px;
  }
  .auth-wrap { max-width: 480px; }
  .auth-icon { display: none; }
}

@media (max-width: 520px) {
  .auth { align-items: flex-start; padding-top: 32px; }
  .mobile-brand { margin-bottom: 64px; }
  body.login-page .auth h2 { font-size: 28px; }
  .auth-footer { flex-direction: column; align-items: center; }
  .hero-copy { padding: 30px 0; }
}
