/* Auth-only visual language: graphite, amber light and muted turquoise. */
.auth-page {
  --auth-logo-width: 253.3333px;
  --auth-ink: #253640;
  --auth-muted: #6c7c86;
  --auth-accent: #326468;
  --auth-line: #dce4e7;
  background: #f9fafb;
}
.auth-story {
  isolation: isolate;
  background: #101e29;
  padding: clamp(28px, 3.1vw, 48px) 10%;
  min-width: 0;
}
.auth-story .brand { max-width: var(--auth-logo-width); z-index: 1; }
.auth-story::after { display: none; }
.story-carousel { position: relative; z-index: 1; width: 100%; max-width: 480px; margin: auto 0; padding: 48px 0 40px; }
.story-slides { display: grid; }
.story-slide {
  --story-accent: #efbb7d;
  --story-tint: #edb16b14;
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s;
}
.story-slide[data-tone=teal] { --story-accent: #9ad0c6; --story-tint: #81c7b914; }
.story-slide[data-tone=ice] { --story-accent: #b0c9d9; --story-tint: #b0c9d912; }
.story-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
/* Share row heights across all slides so wrapping never moves the next block. */
@supports (grid-template-rows: subgrid) {
  .story-slides { grid-template-rows: repeat(4, auto); }
  .story-slide { grid-area: 1 / 1 / 5 / 2; display: grid; grid-template-rows: subgrid; }
  .story-slide > .story-event-card { margin-top: 0; }
}
.story-eyebrow { display: flex; align-items: center; gap: 9px; color: #fff; font-size: 12px; font-weight: 550; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 22px; }
.story-eyebrow .icon { color: inherit; width: 15px; height: 15px; }
.story-title { font-size: clamp(28px, 2.5vw, 38px); line-height: 1.2; letter-spacing: -.9px; font-weight: 560; color: #f5f7f8; margin: 0; text-wrap: balance; }
.story-title span { color: #aec9ce; }
.story-description { font-size: 14px; color: #c0cdd5; line-height: 1.7; max-width: 430px; margin: 22px 0 30px; }
/* Vehicle scenes are decorative; the generated pale left side remains a real text-safe area. */
.story-event-card {
  --card-ink: #081a33;
  --card-accent: #236963;
  --card-highlight: #60b9a9;
  --card-tint: #dceee7;
  --card-secondary: #e4b367;
  --card-tertiary: #df9381;
  --card-note: #906127;
  --card-note-tint: #f7eaca;
  --card-status: #2f776f;
  --card-date-soft: #e7f4f0;
  --card-date-bg: #bfe3da;
  --card-date-line: #86c3b6;
  --card-date-ink: #195f59;
  position: relative;
  display: block;
  min-height: 278px;
  margin-top: auto;
  flex-shrink: 0;
  border: 1px solid #d7e2e6d9;
  border-radius: 16px;
  padding: 24px 22px 22px;
  color: var(--card-ink);
  background: rgb(248 250 252 / 76%);
  box-shadow: 0 16px 42px #020b1524, inset 0 1px #ffffffb3;
  overflow: hidden;
}
.story-event-card::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 4px; background: linear-gradient(90deg, var(--card-highlight) 0% 68%, var(--card-secondary) 68% 86%, var(--card-tertiary) 86% 100%); }
.story-event-card[data-card-tone=amber] { --card-accent: #825421; --card-highlight: #e9b666; --card-tint: #f6e8cd; --card-secondary: #df9381; --card-tertiary: #60b9a9; --card-note: #236963; --card-note-tint: #dceee7; --card-status: #99611f; --card-date-soft: #fbf0dc; --card-date-bg: #f2d59f; --card-date-line: #dfb965; --card-date-ink: #7c4b16; }
.story-event-card[data-card-tone=coral] { --card-accent: #985747; --card-highlight: #df9381; --card-tint: #f5e1db; --card-secondary: #e9b666; --card-tertiary: #60b9a9; --card-note: #236963; --card-note-tint: #dceee7; --card-status: #b75043; --card-date-soft: #fae8e4; --card-date-bg: #f2c8c0; --card-date-line: #db9085; --card-date-ink: #943f35; }
.story-vehicle-scene { position: absolute; z-index: 0; inset: 0; pointer-events: none; opacity: .9; }
.story-vehicle-scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#fbfdffff 0%,#fbfdfff9 43%,#f5f9fbc7 60%,#f5f9fb24 83%,transparent 100%); }
.story-vehicle-scene img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.story-card-date-column { position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; display: flex; width: 104px; flex-direction: column; align-items: center; justify-content: center; padding: 12px 8px; color: var(--card-date-ink); background: linear-gradient(180deg,var(--card-date-soft) 0%,var(--card-date-bg) 100%); border-right: 1px solid var(--card-date-line); box-shadow: inset -10px 0 24px #ffffff2e; }
.story-card-date-column strong { font-size: 44px; font-weight: 520; letter-spacing: -1.2px; line-height: 1; font-variant-numeric: tabular-nums; }
.story-card-date-column span { margin-top: 7px; font-size: 12px; font-weight: 620; line-height: 1.2; text-align: center; }
.story-symbol, .story-note-symbol { display: block; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.story-symbol { width: 32px; height: 32px; }
.story-card-content { position: relative; z-index: 2; min-width: 0; min-height: 232px; display: flex; flex-direction: column; margin-left: 98px; }
.story-card-meta { display: block; min-height: 20px; padding-right: 122px; }
.story-card-kicker { color: #617688; font-size: 12px; font-weight: 500; letter-spacing: 0; line-height: 1.4; }
.story-card-content h3 { width: 72%; min-height: 56px; margin: 8px 0 0; font-size: 20px; color: var(--card-ink); font-weight: 560; letter-spacing: -.28px; line-height: 1.38; text-wrap: pretty; }
.story-countdown { position: absolute; top: -3px; right: -2px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; white-space: nowrap; color: #fff; background: var(--card-status); border: 1px solid #ffffff29; border-radius: 9px; box-shadow: 0 7px 18px #17334a24,inset 0 1px #ffffff26; font-size: 12px; font-weight: 650; line-height: 1.3; }
.story-countdown-icon { display: grid; place-items: center; flex: 0 0 auto; }
.story-countdown-icon .story-note-symbol { width: 15px; height: 15px; }
.story-event-card[data-card-tone=coral] .story-countdown { color: #fff; border-color: #ffffff29; background: var(--card-status); }
.story-card-main { width: 72%; padding: 10px 0 15px; }
.story-vehicle { display: flex; align-items: center; gap: 7px 10px; flex-wrap: wrap; }
.story-plate { display: inline-block; color: var(--card-ink); font-size: 15px; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.story-vehicle > span:last-child { font-size: 14px; color: var(--card-ink); border-left: 1px solid #bdcfd8; padding-left: 10px; }
.story-card-main p { font-size: 14px; color: var(--card-ink); line-height: 1.6; margin: 9px 0 0; }
.story-card-main time { color: var(--card-ink); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.story-card-note { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #28455b; line-height: 1.45; }
.story-note-icon { display: grid; place-items: center; flex: 0 0 27px; height: 27px; color: var(--card-note); }
.story-note-symbol { width: 21px; height: 21px; }
.story-card-note strong { color: var(--card-ink); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.story-controls { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.story-selectors { display: flex; gap: 4px; }
.story-selector { display: flex; align-items: center; justify-content: center; width: 32px; min-height: 32px; padding: 0; background: none; border: 0; border-radius: 4px; }
.story-selector span { display: block; height: 3px; width: 22px; background: #78909e66; border-radius: 3px; transition: background .3s, width .3s; }
.story-selector[aria-pressed=true] span { background: #e9b279; width: 28px; }
.story-selector:hover span { background: #cfdae1; }
.auth-story .story-bottom { color: #b6c6d0; gap: 14px; font-size: 11px; flex-direction: row; flex-wrap: wrap; }
.auth-right { --ink: var(--auth-ink); --muted: var(--auth-muted); --teal: var(--auth-accent); --line: var(--auth-line); background: #f9fafb; }
.auth-body { max-width: 370px; }
/* Both account modes share intrinsic layout slots; switching changes visibility only. */
.auth-copy-slot, .auth-extra-slot { display: grid; min-width: 0; }
.auth-copy-slot > [data-auth-content], .auth-extra-slot > [data-auth-content] { grid-area: 1 / 1; min-width: 0; }
.auth-body--account [data-auth-content]:not(.is-active) { visibility: hidden; pointer-events: none; }
.auth-register-extra { display: grid; gap: 12px; }
.auth-login-extra { display: flex; flex-direction: column; }
.auth-login-extra .auth-recovery { min-height: 21px; }
.auth-body .auth-mail-notice { padding: 0; border: 0; background: transparent; line-height: 1.5; gap: 8px; }
.auth-mail-notice .icon { width: 16px; height: 16px; margin-top: 2px; }
.auth-body h1 { font-weight: 600; letter-spacing: -.7px; color: var(--auth-ink); }
.auth-body .subtitle { font-size: 15px; line-height: 1.65; }
.auth-body .hint, .auth-body .notice, .auth-body .form-error { font-size: 13px; }
.auth-body .divider { font-size: 12px; }
.auth-body .field { color: #40545f; font-size: 14px; }
.auth-body .field input { border-color: #cfdade; border-radius: 7px; min-height: 46px; background: #ffffffb8; font-size: 16px; }
.auth-body .field input:focus { border-color: #cfdade; outline: none; box-shadow: none; background: #fff; }
.auth-body .btn { border-radius: 7px; min-height: 44px; font-size: 15px; }
.auth-body .btn.primary { background: #326468; border-color: #326468; color: #fff; box-shadow: 0 3px 8px #24585b16; }
.auth-body .btn.primary:hover { background: #295459; border-color: #295459; }
.auth-body .btn:not(.primary) { color: #3b676b; border-color: #d2dfe1; background: #fff8; }
.auth-body .btn:not(.primary):hover { background: #edf3f3; }
.auth-body a { color: #416f72; font-size: 14px; }
.auth-body .auth-recovery { justify-content: flex-end; }
.auth-body:has(.auth-apps) { padding-block: 16px; }
.auth-apps { border-top: 1px solid #dce4e7; margin-top: 20px; padding-top: 16px; }
.auth-apps-platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.app-store-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 76px; padding: 10px 6px; border: 1px solid #d9e2e8; border-radius: 10px; color: #202124; background: #fff; text-align: center; }
.app-store-preview:hover { border-color: #a9b6be; background: #f3f6f7; }
.app-store-name { font-size: 13px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.app-platform-icon { display: block; flex-shrink: 0; object-fit: contain; }
.auth-tabs a { color: #72828b; }
.auth-tabs a.active { color: #326468; border-color: #326468; }
.auth-body .password button { top: 7px; right: 7px; color: #647d86; }
.auth-page :focus-visible { outline-color: #91b8b5; }
.auth-top .brand { width: var(--auth-logo-width); max-width: 100%; }
.auth-foot { color: #7c8b94; }
.auth-footer-brand { display: block; position: relative; width: calc(var(--auth-logo-width) * .45); max-width: 100%; aspect-ratio: 1949 / 520; overflow: hidden; color: #365c83; }
.auth-footer-brand img { position: absolute; left: 0; top: 0; display: block; width: 26.680349%; height: 100%; transform: scale(1.06383); }
/* Match the upper logo's canvas, crop and letter placement exactly. */
.auth-footer-wordmark {
  display: block;
  position: absolute;
  inset: 0;
  background: currentColor;
  clip-path: inset(0 0 0 29%);
  -webkit-mask: url('./assets/tahoaudit-copper-v1.png') 56.950673% 48.529412% / 111.441765% 139.230769% no-repeat;
  mask: url('./assets/tahoaudit-copper-v1.png') 56.950673% 48.529412% / 111.441765% 139.230769% no-repeat;
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (min-width: 700px) {
  .auth-story { background-image: linear-gradient(90deg,#0e1d29f0 0%,#0e1d29d9 32%,#0e1d2988 49%,#0e1d2922 73%,#0e1d2900), url('./assets/auth-disc-v2.webp'); background-size: cover; background-position: center; }
}
@media (min-width: 2000px) {
  .story-carousel { max-width: 520px; }
  .story-title { font-size: 40px; }
  .story-event-card { min-height: 288px; }
  .story-card-content { min-height: 242px; }
  .story-card-content h3 { font-size: 21px; }
}
@media (min-width: 700px) and (max-width: 1199px) {
  .auth-story { padding-left: 7%; padding-right: 7%; background-position: 38% center; }
  .story-title { font-size: 29px; }
  .story-carousel { padding: 38px 0 30px; }
}
@media (min-width: 700px) and (max-width: 899px) {
  .story-event-card { min-height: 312px; padding: 19px 15px 17px; }
  .story-vehicle-scene::after { background: linear-gradient(90deg,#fbfdffff 0%,#fbfdfff9 47%,#f5f9fbd9 66%,#f5f9fb42 88%,transparent 100%); }
  .story-vehicle-scene img { object-position: 65% center; }
  .story-card-date-column { left: 0; top: 0; bottom: 0; width: 72px; padding: 9px 5px; }
  .story-card-date-column strong { font-size: 34px; }
  .story-card-date-column span { margin-top: 5px; font-size: 9px; }
  .story-card-content { min-height: 276px; margin-left: 76px; }
  .story-card-meta { padding-right: 100px; }
  .story-card-kicker { font-size: 11px; }
  .story-card-content h3 { width: 84%; min-height: 54px; font-size: 18px; }
  .story-countdown { top: -2px; right: 0; gap: 4px; padding: 7px 8px; font-size: 11px; }
  .story-countdown-icon .story-note-symbol { width: 13px; height: 13px; }
  .story-card-main { width: 82%; padding: 8px 0 14px; }
  .story-plate { font-size: 14px; }
  .story-vehicle > span:last-child { border-left: 0; padding-left: 0; }
  .story-card-main p { font-size: 13px; }
  .story-card-note { font-size: 12px; }
}
@media (min-width: 700px) and (max-height: 800px) {
  .auth-story { padding-top: 25px; padding-bottom: 25px; }
  .story-carousel { padding-top: 30px; padding-bottom: 24px; }
  .story-title { font-size: 29px; }
  .story-eyebrow { margin-bottom: 15px; }
  .story-description { margin-top: 16px; margin-bottom: 22px; }
}
@media (max-width: 699px) {
  .auth-page { --auth-logo-width: 200px; }
  .auth-top { background: #101e29; padding-top: 22px; padding-bottom: 22px; }
  .auth-body { padding-top: 32px; padding-bottom: 32px; }
  .auth-body .field input { min-height: 46px; }
  .auth-body .btn { min-height: 44px; }
  .auth-body .password button { top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .story-slide, .story-selector span { transition: none; transform: none; }
}

/* The cabinet domain is part of the login wordmark only. Reserve its width so
   switching between login/registration never shifts the logo or form. */
.auth-brand-lockup, .auth-footer-lockup {
 display: flex; align-items: stretch; position: relative; flex-shrink: 0;
 width: calc(var(--auth-logo-width) * 1.428425); max-width: 100%;
 aspect-ratio: 2784 / 520; color: #fff; z-index: 1;
}
.auth-brand-lockup .brand { width: 70.007184%; max-width: none; }
.auth-online-suffix {
 display: block; width: 29.992816%; height: auto; overflow: visible;
 flex-shrink: 0; visibility: hidden;
}
/* Vector lettering follows the existing artwork: baseline y=425,
   lowercase height 232, cap/ascender height 299, stems 48 source units. */
.auth-page--online .auth-online-suffix { visibility: visible; }
.auth-brand-lockup--mobile { display: none; }
.auth-footer-lockup { width: calc(var(--auth-logo-width) * .45 * 1.428425); color: #365c83; }
.auth-footer-lockup .auth-footer-brand { width: 70.007184%; color: inherit; }
@media (max-width: 699px) { .auth-brand-lockup--mobile { display: flex; } }
