/* Colors sampled from assets/brand/autobrokers-logo.png (mode of the solid pixels).
   Orange is a fill only, always carrying --label; never text, never tinted or shaded, in either
   scheme. Ratios are WCAG contrast, measured. */
:root {
  --orange: #FD6301;
  --label: #1A1206;  /* on --orange: 6.14:1 (same in both schemes) */
  --ground: #FFFFFF;
  --ink: #1C232A;    /* the mark's slate */
  --muted: #5F656B;  /* on #FFFFFF: 5.90:1 */
  --ring: #1C232A;
  --lift: rgb(28 35 42 / 0.18);
  --lift-hover: rgb(28 35 42 / 0.45);
  color-scheme: light dark;
}

/* Dark: the ground is the mark's own slate, and the on-dark mark (slate → white) sits directly on
   it. Nothing orange changes. */
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1C232A; /* orange fill against it: 5.26:1 */
    --ink: #FFFFFF;
    --muted: #9AA1A8;  /* on #1C232A: 6.07:1 */
    --ring: #FFFFFF;
    --lift: rgb(0 0 0 / 0.35);
    --lift-hover: rgb(0 0 0 / 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  border-top: 6px solid var(--orange);
}

.door {
  min-height: calc(100% - 6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 12vh;
  text-align: center;
}

.mark { margin: 0; width: 100%; max-width: 640px; line-height: 0; }
.mark img { display: block; width: 100%; height: auto; }

.login {
  margin-top: clamp(32px, 7vh, 64px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 52px;
  padding: 0 40px;
  border-radius: 6px;
  background: var(--orange);
  color: var(--label);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 1px 0 var(--lift);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
/* Hover and press move the button; the orange itself never changes. */
.login:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -6px var(--lift-hover); }
.login:active { transform: translateY(0); box-shadow: 0 1px 0 var(--lift); }
.login:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }

.note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

@media (max-width: 480px) {
  .login { width: 100%; max-width: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  .login { transition: none; }
  .login:hover { transform: none; }
}
