/*
 * auth-chrome.css (2026-11-23) — slate top bar + footer for the logged-out screens
 * (index.html: log in / sign up / forgot password, reset-password.html,
 * accept-driver-invite.html, delete-my-data.html). Sizes, colours and breakpoints match
 * landing.html exactly: bar #3f4750, logo 34px (29px at <=380px) with the 35px wave and
 * 13.5px tagline, Oswald uppercase links with 1px dividers, orange (#F58A4B) hover, footer
 * gradient + topology overlay. The bars stay slate in BOTH light and dark mode; the form
 * between them still follows the app theme.
 */
@font-face { font-family: "Oswald"; src: url(../assets/fonts/oswald-variable.woff2) format("woff2"); font-style: normal; font-weight: 200 700; font-display: swap; }

.auth-bar, .auth-footer { align-self: stretch; box-sizing: border-box; width: 100%; }

/* ---------- top and bottom bars (v2, 2026-11-27): same colour as the landing page background, the same height as each other,
   logo lined up with the left of the form (the .app-shell column is 420px wide with 16px side padding) ---------- */
:root { --auth-bar-h: 104px; --auth-bg: #262c33; }

.auth-bar { position: relative; z-index: 30; display: flex; align-items: center; height: var(--auth-bar-h); padding: 0; background: var(--auth-bg); border: 0; }
.auth-bar-row { position: relative; box-sizing: border-box; width: 100%; max-width: 420px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-bar .auth-brand { display: block; flex: 0 0 auto; text-decoration: none; transition: opacity .15s ease; }
.auth-bar .auth-brand:hover, .auth-bar .auth-brand:focus-visible { opacity: .8; outline: none; }
.auth-bar .axleator-logo { display: inline-flex; flex-direction: column; align-items: flex-start; }
.auth-bar .wordmark { color: #fff; }
.auth-bar .axle, .auth-bar .ator { font-size: 34px; }
.auth-bar .ator { color: #e4d9d9; }
.auth-bar .wave-icon { width: 35px; bottom: 19px; }
.auth-bar .brand-tagline { margin-top: 6px; margin-left: .06em; font-size: 13.5px; letter-spacing: .07em; color: #fff; white-space: nowrap; }
.auth-bar .brand-tagline .tagline-calc { color: #e4d9d9; }
@media (max-width: 380px) {
  .auth-bar .axle, .auth-bar .ator { font-size: 29px; }
  .auth-bar .wave-icon { width: 30px; bottom: 16px; }
}
.auth-link {
  font-family: "Oswald", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; text-decoration: none; white-space: nowrap; transition: color .18s ease;
}
.auth-link:hover, .auth-link:focus-visible { color: #F58A4B; outline: none; }

/* burger menu – the same button and dropdown as the landing page (black box, cut corners like the pricing boxes, orange border) */
.auth-burger { display: flex; flex-direction: column; justify-content: center; gap: 6px; flex: none; width: 48px; height: 48px; padding: 0 12px; background: none; border: 1px solid rgba(255,255,255,.28); border-radius: 12px; cursor: pointer; }
.auth-burger span { display: block; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .2s; }
.auth-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.auth-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.auth-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
.auth-menu { display: none; position: absolute; top: calc(100% + 12px); right: 0; left: 0; z-index: 50; flex-direction: column; align-items: stretch; box-sizing: border-box; isolation: isolate; padding: 11px; background: #F58A4B;
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px); }
.auth-menu.is-open { display: flex; }
.auth-menu::before { content: ""; position: absolute; inset: 1px; z-index: -1; background: #000;
  clip-path: polygon(calc(16px - .4px) 0, calc(100% - 16px + .4px) 0, 100% calc(16px - .4px), 100% calc(100% - 16px + .4px), calc(100% - 16px + .4px) 100%, calc(16px - .4px) 100%, 0 calc(100% - 16px + .4px), 0 calc(16px - .4px)); }
.auth-menu a { display: flex; align-items: center; padding: 16px 14px; font-family: "Oswald", ui-sans-serif, system-ui, sans-serif; font-weight: 600; font-size: 20px; letter-spacing: .1em; text-transform: uppercase; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.14); transition: color .18s ease; }
.auth-menu a:last-child { border-bottom: 0; }
.auth-menu a:hover, .auth-menu a:focus-visible { color: #F58A4B; outline: none; }
.auth-menu .oa-arrow { width: .8em; height: .8em; margin-left: .4em; color: #F58A4B; flex: none; }

/* ---------- footer: same colour and same height as the top bar ---------- */
.auth-footer { position: relative; display: flex; align-items: center; height: var(--auth-bar-h); color: #f7f8fa; background: var(--auth-bg); overflow: visible; }
.auth-footer::after { display: none; }
.auth-footer-links {
  position: relative; z-index: 1; box-sizing: border-box; max-width: 712px; width: calc(100% - 32px); margin: 0 auto;
  display: flex; flex-wrap: nowrap; justify-content: center; align-items: center;
  gap: 8px 24px; padding: 0; text-align: center;
}
.auth-divider { display: block; flex: 0 0 auto; width: 1px; height: 20px; background: rgba(255,255,255,.28); }
@media (max-width: 600px) {
  .auth-footer-links { flex-wrap: wrap; gap: 12px 14px; padding: 0; }
  .auth-footer-links .auth-link { font-size: .875rem; letter-spacing: .08em; }
  .auth-footer-links .auth-copy { flex: 0 0 100%; font-size: .95rem; }
  .auth-footer-links .auth-copy + .auth-divider { display: none; }
  .auth-divider { height: 16px; }
}
@media (max-width: 440px) { /* all four footer links on one line */
  .auth-footer-links { gap: 10px 8px; }
  .auth-footer-links .auth-link { font-size: .74rem; letter-spacing: .04em; }
  .auth-footer-links .auth-copy { font-size: .85rem; }
}
@media (max-width: 340px) {
  .auth-footer-links { gap: 10px 5px; }
  .auth-footer-links .auth-link { font-size: .66rem; letter-spacing: .02em; }
  .auth-footer-links .auth-copy { font-size: .8rem; }
}

/* ---------- phones: equal space above the form (under the top bar) and below it (above the footer) ---------- */
@media (max-width: 600px) {
  .auth-bar ~ .app-shell { margin: auto 0; padding-top: 20px; padding-bottom: 28px; } /* 21px top: the heading text has ~7px of built-in space above its letters, so this makes the VISIBLE gaps equal */
}

/* ---------- tablet / desktop: same visible-gap correction (heading text has ~8px of built-in space above its letters) ---------- */
@media (min-width: 601px) {
  .auth-bar ~ .app-shell { padding-top: 16px; padding-bottom: 24px; }
}

/* Home link – last item in the burger menu, orange */
.auth-menu a.auth-home { color: #F58A4B; }
.auth-menu a.auth-home:hover, .auth-menu a.auth-home:focus-visible { color: #fff; }

/* 2026-11-30: the drop-down menu is the same width as the app's boxes and buttons (inside the 16px side padding). */
.auth-menu { left: 16px; right: 16px; }

/* 2026-11-30: on the public help page the top bar stays put while the page scrolls;
   jump links stop below it rather than underneath it. */
.help-sticky-bar .auth-bar { position: sticky; top: 0; flex: none; }
.help-sticky-bar:not(.lenis) .section-title[id] { scroll-margin-top: calc(var(--auth-bar-h) + 12px); }
.help-sticky-bar .auth-menu { max-height: calc(100vh - var(--auth-bar-h) - 8px); overflow-y: auto; }
