/* ── Auth shell — the password-recovery screens ──────────────────────────────
   Forgot password and reset password, styled to match the sign-in screen:
   brand panel on the left, highway footage and an INK-GLASS card on the right.

   GENERATED from the <style> block of templates/auth/_video_shell.html
   (2026-08-02, dark card + view-transition era) with three mechanical edits:
   wrap_width block -> 404px, shell_css block removed, poster url_for -> a
   relative path. When the shell's style block changes, regenerate this file
   the same way — do not hand-edit it into a fork.

   Markup: templates/auth/_auth_base.html. Tokens come from home.css. */

/* min-height, never height: a fixed 100% caps the body so a card taller
   than the viewport overflows with no scrollbar to reach it. */
/* Both auth pages are dark — the document itself must paint dark or the
   browser flashes cream/white for a frame on every login<->signup hop. */
html { background: #0b0d10; }
html, body { min-height: 100%; }
body.login-body {
  margin: 0;
  font-family: var(--font-sans);
  background: #0b0d10;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Smooth login <-> signup swap (View Transitions) ─────────────
   Cross-document: the browser snapshots the old page, swaps, and
   animates. The card carries a view-transition-name, so it morphs
   (position + 404px<->600px width) while everything else cross-fades —
   reads as "only the card changed". Browsers without support just
   navigate normally; reduced-motion opts out below. */
@view-transition { navigation: auto; }
.login-card { view-transition-name: auth-card; }
/* Background holds nearly still — a quick, quiet cross-fade. */
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .3s; }
/* Card swap: the old card drops away and fades, then the new one settles
   in from above with a soft overshoot ease. The group still morphs the
   404px<->600px bounds underneath so neither snapshot ever stretches. */
::view-transition-group(auth-card) {
  animation-duration: .55s;
  animation-timing-function: cubic-bezier(.16, 1, .3, 1);
}
@keyframes vt-card-drop {
  to { opacity: 0; transform: translateY(26px) scale(.98); }
}
@keyframes vt-card-settle {
  from { opacity: 0; transform: translateY(-30px) scale(.98); }
}
::view-transition-old(auth-card) {
  animation: vt-card-drop .22s ease-in both;
  height: 100%;
}
::view-transition-new(auth-card) {
  animation: vt-card-settle .42s .14s cubic-bezier(.16, 1, .3, 1) both;
  height: 100%;
}

.login-split { display: flex; min-height: 100vh; }

/* ══ Left brand panel — unchanged ═══════════════════════════════ */
.login-side {
  position: relative;
  flex: 0 0 46%;
  max-width: 620px;
  overflow: hidden;
  background:
    radial-gradient(130% 80% at 12% 8%, rgba(94, 234, 212, 0.16), transparent 46%),
    radial-gradient(120% 90% at 100% 100%, rgba(13, 148, 136, 0.22), transparent 55%),
    linear-gradient(168deg, #0b0d10 0%, #101821 58%, #0a1413 100%);
  color: var(--on-ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 52px;
}
/* faint grid texture */
.login-side::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 90% at 20% 0%, #000 30%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 20% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}
.login-side > * { position: relative; z-index: 1; }

.login-side-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--on-ink);
  align-self: flex-start;
}
.login-side-brand:hover { color: var(--on-ink); }
.login-side-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #061817;
  color: var(--mint);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 8px 22px -8px rgba(13,148,136,.6);
}
.login-side-logo .mcv-mark { width: 100%; height: 100%; object-fit: cover; display: block; }
.login-side-wordmark { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }

.login-side-main { max-width: 420px; }
.login-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 20px;
}
.login-eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 999px;
  background: var(--mint); box-shadow: 0 0 0 4px rgba(94,234,212,.16);
}
.login-side-main h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--on-ink);
  margin-bottom: 16px;
}
.login-side-main h2 .accent { color: var(--mint); }
.login-side-main p {
  color: var(--on-ink-muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 30px;
  max-width: 40ch;
}
.login-side-points { list-style: none; margin: 0; padding: 0; }
.login-side-points li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  font-size: 14.5px;
  color: rgba(245, 244, 239, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.login-side-points li:first-child { border-top: 0; }
.login-side-points li i {
  color: var(--mint); font-size: 16px; flex-shrink: 0;
}

.login-side-foot {
  font-size: 12.5px;
  color: var(--on-ink-muted);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.login-side-foot span { display: inline-flex; align-items: center; gap: 7px; }
.login-side-foot i { color: var(--mint); }

/* ══ Right panel — highway footage behind a sign-in card ════════ */
.login-main {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  /* centre with the card's auto margin, not align-items: a flex item
     taller than the line box overflows upward and can't be scrolled to */
  align-items: flex-start;
  padding: 48px 32px;
  background: #0d1116;
  overflow: hidden;
}
.login-video,
.login-veil { position: absolute; inset: 0; }
.login-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bias the crop right-of-centre: the truck travels down the right side
     of the source frame, so a plain centre crop parks it behind the card. */
  object-position: 80% center;
  display: block;
}
/* Brand veil — pulls the daylight footage back to the Ink + Mint palette
   and buys the white card enough contrast to sit on top of it. */
.login-veil {
  background:
    linear-gradient(180deg, rgba(11,13,16,.52) 0%, rgba(11,13,16,.26) 38%, rgba(11,13,16,.62) 100%),
    radial-gradient(90% 70% at 50% 46%, rgba(6,78,68,.34), transparent 72%),
    linear-gradient(150deg, rgba(13,148,136,.20), rgba(11,13,16,.28));
}

.login-form-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 404px;
  margin: auto;
}

/* Compact branded header — hidden on desktop, shown when panel collapses */
.login-topbar { display: none; }

/* ── the card — ink glass, same family as the left brand panel ── */
.login-card {
  background: linear-gradient(165deg, rgba(24, 31, 40, .86), rgba(11, 15, 21, .92));
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  padding: 36px 34px 30px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .09) inset,
    0 30px 70px -26px rgba(0, 0, 0, .8);
}

.login-card h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 7px;
}
.login-sub { color: rgba(226, 232, 240, .62); font-size: 14.5px; margin: 0 0 26px; }

/* Flash alerts — custom chrome so the icon, text and close button all sit
   on one clean row (Bootstrap's absolute-positioned .btn-close misaligns
   inside a compact alert). */
.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.login-alert > i { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.login-alert span { flex: 1; min-width: 0; }
.login-alert-close {
  border: 0;
  background: transparent;
  padding: 2px;
  margin: 0 -2px 0 4px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: .55;
  flex-shrink: 0;
  font-size: 13px;
  transition: opacity .12s ease;
}
.login-alert-close:hover { opacity: 1; }
.login-alert-danger  { background: rgba(239, 68, 68, .14);  border-color: rgba(248, 113, 113, .42); color: #fecaca; }
.login-alert-success { background: rgba(16, 185, 129, .14); border-color: rgba(52, 211, 153, .42);  color: #bbf7d0; }
.login-alert-warning { background: rgba(245, 158, 11, .14); border-color: rgba(251, 191, 36, .42);  color: #fde68a; }
.login-alert-info    { background: rgba(45, 212, 191, .12); border-color: rgba(94, 234, 212, .38);  color: #99f6e4; }

/* ── fields ───────────────────────────────────────────────────── */
.login-field { margin-bottom: 16px; }
.login-card .form-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(240, 244, 248, .92);
  margin-bottom: 7px;
}
.login-card .form-control {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 11px;
  padding: 12px 14px;
  font-size: 15px;
  color: #f8fafc;
  background: rgba(255, 255, 255, .06);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.login-card .form-control::placeholder { color: rgba(226, 232, 240, .45); }
.login-card .form-control:hover { border-color: rgba(255, 255, 255, .28); }
.login-card .form-control:focus {
  border-color: var(--mint, #5eead4);
  box-shadow: 0 0 0 3.5px rgba(94, 234, 212, 0.16);
  background: rgba(255, 255, 255, .09);
  color: #f8fafc;
  outline: none;
}
/* Chrome/Safari paint autofilled inputs white — repaint them dark */
.login-card .form-control:-webkit-autofill,
.login-card .form-control:-webkit-autofill:hover,
.login-card .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: #f8fafc;
  -webkit-box-shadow: 0 0 0 1000px #1b232d inset;
  caret-color: #f8fafc;
  border-radius: 11px;
  transition: background-color 100000s ease-out 0s;
}

/* ── remember me  ·  forgot password (one row) ────────────────── */
.login-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 22px;
}
.login-card .form-check { margin: 0; min-height: auto; }
.login-card .form-check-label { font-size: 14px; color: rgba(226, 232, 240, .85); cursor: pointer; }
.login-card .form-check-input {
  border-color: rgba(255, 255, 255, .34);
  background-color: rgba(255, 255, 255, .06);
  cursor: pointer;
  margin-top: .15em;
}
.login-card .form-check-input:checked {
  background-color: var(--mint, #5eead4);
  border-color: var(--mint, #5eead4);
  /* Bootstrap's tick SVG is white; ink reads better on a mint box */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23052e2a' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}
.login-card .form-check-input:focus { box-shadow: 0 0 0 3.5px rgba(94, 234, 212, 0.18); border-color: var(--mint, #5eead4); }

.login-forgot {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mint, #5eead4);
  text-decoration: none;
  white-space: nowrap;
}
.login-forgot:hover { color: #ffffff; text-decoration: underline; }

.cf-wrap { margin-bottom: 18px; display: flex; justify-content: center; }

.btn-login {
  width: 100%;
  background: linear-gradient(180deg, #7af0dd 0%, #34d8c4 55%, #1cc0ae 100%);
  color: #052e2a;
  border: none;
  border-radius: 11px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 12px 28px -12px rgba(45, 212, 191, .7);
  transition: filter 0.18s, box-shadow 0.18s, transform 0.12s;
}
.btn-login:hover {
  filter: brightness(1.07);
  color: #052e2a;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 16px 36px -12px rgba(45, 212, 191, .85);
}
.btn-login:active { transform: translateY(1px); }
.btn-login:focus-visible { outline: 3px solid rgba(94, 234, 212, .55); outline-offset: 2px; }

.login-signup-row {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 14.5px;
  color: rgba(226, 232, 240, .6);
  text-align: center;
}
.login-signup-row a {
  color: var(--mint, #5eead4);
  font-weight: 600;
  text-decoration: none;
}
.login-signup-row a:hover { color: #ffffff; text-decoration: underline; }

/* Password show/hide */
.pw-group { position: relative; }
.pw-group .form-control { padding-right: 2.9rem; }
.pw-toggle {
  position: absolute; top: 0; right: 0; z-index: 5;
  height: 100%; width: 2.9rem;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: rgba(226, 232, 240, .5);
  padding: 0; cursor: pointer;
  opacity: 0; transition: opacity .12s ease, color .12s ease;
}
.pw-group:hover .pw-toggle,
.pw-group:focus-within .pw-toggle { opacity: 1; }
.pw-toggle:hover, .pw-toggle:focus { color: #ffffff; }

/* footage credit — small, out of the way, satisfies stock-licence courtesy */
.login-credit {
  position: absolute;
  right: 14px;
  bottom: 10px;
  z-index: 1;
  font-size: 10.5px;
  letter-spacing: .02em;
  color: rgba(245, 244, 239, .42);
}

/* ══ Responsive ══════════════════════════════════════════════════
   Below 992px: collapse to a single centered column with a proper
   branded header on the ink background — never a bare form.        */
@media (max-width: 991.98px) {
  .login-split { flex-direction: column; min-height: 100vh; }
  .login-side { display: none; }
  .login-main {
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0 0 48px;
    /* the card is ink glass now, so the small-screen page is ink too —
       a flat dark form on a white sheet would read as broken */
    background:
      radial-gradient(120% 90% at 85% 100%, rgba(13, 148, 136, .14), transparent 60%),
      linear-gradient(168deg, #0b0d10 0%, #101821 62%, #0a1413 100%);
  }
  /* no footage on small screens — it is a 1 MB download for a layer that
     would sit entirely behind the card anyway */
  .login-video, .login-veil, .login-credit { display: none; }
  .login-form-wrap { max-width: 420px; padding: 0 22px; margin: 0 auto; }
  .login-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .login-topbar {
    display: block;
    width: 100%;
    margin: 0 0 30px;
    padding: 26px 22px 30px;
    background:
      radial-gradient(120% 120% at 15% 0%, rgba(94,234,212,.14), transparent 55%),
      linear-gradient(168deg, #0b0d10 0%, #101821 100%);
    text-align: center;
  }
  .login-topbar-brand {
    display: inline-flex; align-items: center; gap: 11px;
    text-decoration: none; color: var(--on-ink);
  }
  .login-topbar-logo {
    width: 40px; height: 40px; border-radius: 11px; background: #061817;
    overflow: hidden; flex-shrink: 0;
    box-shadow: 0 8px 20px -8px rgba(13,148,136,.6);
  }
  .login-topbar-logo .mcv-mark { width: 100%; height: 100%; object-fit: cover; display: block; }
  .login-topbar-word { font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
  .login-topbar-tag {
    margin: 14px auto 0; max-width: 30ch;
    font-size: 13.5px; line-height: 1.5; color: var(--on-ink-muted);
  }
  .login-topbar-tag .accent { color: var(--mint); font-weight: 600; }
}

@media (max-width: 420px) {
  .login-form-wrap { padding: 0 18px; }
  .login-topbar { padding: 22px 18px 26px; }
}

/* Motion-sensitive visitors get the still poster frame, never the loop,
   and no page-swap animation. */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .login-video { display: none; }
  .login-main {
    background-image: url("../img/highway-poster.jpg");
    background-size: cover;
    background-position: 80% center;   /* same crop bias as the video */
  }
}
/* ── Recovery-screen extras (not present in the shell block) ── */
.login-note { font-size: 13px; margin-top: 7px; color: rgba(226, 232, 240, .55); }
.login-note-error { color: #fca5a5; }
