/* Account entry: the form is the task, the image supplies the automotive context. */
html[data-theme="silver"] #sl-auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: 1120px;
  min-height: 0;
  margin: 24px auto 48px;
  border: 1px solid var(--sl-line);
  border-radius: 16px;
  background: var(--sl-surface);
  overflow: hidden;
}
html[data-theme="silver"] #sl-auth .sl-auth-story {
  --story-bg: #171C23;
  --story-ink: #F4F5F7;
  --story-muted: #C2C9D3;
  background: var(--story-bg);
  color: var(--story-ink);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
html[data-theme="silver"] #sl-auth .sl-auth-visual { position: relative; flex: 1; min-height: 490px; }
html[data-theme="silver"] #sl-auth .sl-auth-visual > picture { position: absolute; inset: 0; }
html[data-theme="silver"] #sl-auth .sl-auth-visual > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
html[data-theme="silver"] #sl-auth .sl-auth-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #10141AF5, #10141ADB 270px, transparent 430px),
    linear-gradient(0deg, #171C23, transparent 35%);
  pointer-events: none;
}
html[data-theme="silver"] #sl-auth .sl-auth-story-intro { position: relative; z-index: 1; padding: 36px 36px 160px; }
html[data-theme="silver"] #sl-auth .sl-auth-logo {
  display: block;
  width: 166px;
  height: auto;
  margin-bottom: 40px;
  filter: grayscale(1) invert(1);
}
html[data-theme="silver"] #sl-auth .sl-auth-story-intro h2 {
  margin: 0 0 16px;
  color: var(--story-ink);
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 700;
}
html[data-theme="silver"] #sl-auth .sl-auth-story-intro p {
  margin: 0;
  color: var(--story-muted);
  font-size: 14px;
  line-height: 1.65;
}
html[data-theme="silver"] #sl-auth .sl-auth-benefits {
  display: grid;
  gap: 20px;
  padding: 12px 36px 32px;
  margin: 0;
  list-style: none;
}
html[data-theme="silver"] #sl-auth .sl-auth-benefits li { display: flex; align-items: flex-start; gap: 14px; }
html[data-theme="silver"] #sl-auth .sl-auth-benefits svg { flex: 0 0 21px; color: var(--story-muted); margin-top: 2px; }
html[data-theme="silver"] #sl-auth .sl-auth-benefits strong { display: block; color: var(--story-ink); font-size: 13px; font-weight: 650; }
html[data-theme="silver"] #sl-auth .sl-auth-benefits span { display: block; color: var(--story-muted); font-size: 12px; line-height: 1.5; margin-top: 3px; }
html[data-theme="silver"] #sl-auth .auth-form-wrap {
  background: var(--sl-surface);
  padding: 36px 40px;
  min-width: 0;
  overflow: visible;
  justify-content: flex-start;
}
html[data-theme="silver"] #sl-auth .auth-form { max-width: 420px; }
html[data-theme="silver"] #sl-auth .sl-auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  color: var(--sl-muted);
  font-size: 12px;
  text-decoration: none;
}
html[data-theme="silver"] #sl-auth .sl-auth-back svg { width: 15px; height: 15px; }
html[data-theme="silver"] #sl-auth .sl-auth-back:hover { color: var(--sl-ink); text-decoration: underline; text-underline-offset: 3px; }
html[data-theme="silver"] #sl-auth .auth-form-head { margin-bottom: 24px; }
html[data-theme="silver"] #sl-auth .auth-form-head h1 { font-size: 30px; line-height: 1.2; letter-spacing: -.025em; font-weight: 750; color: var(--sl-ink); margin: 0 0 12px; }
html[data-theme="silver"] #sl-auth .auth-form-head p { color: var(--sl-muted); font-size: 14px; line-height: 1.6; }
html[data-theme="silver"] #sl-auth .auth-form-head .sl-auth-next { margin-top: 12px; font-size: 12px; color: var(--sl-ink); }
html[data-theme="silver"] #sl-auth .sl-auth-providers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
html[data-theme="silver"] #sl-auth .btn-social {
  justify-content: flex-start;
  min-width: 0;
  min-height: 54px;
  height: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--sl-line);
  border-radius: 10px;
  color: var(--sl-ink);
  background: var(--sl-surface);
  font-size: 13px;
  line-height: 1.4;
  gap: 10px;
  transition: background-color 160ms ease, border-color 160ms ease;
  transform: none;
  box-shadow: none;
}
html[data-theme="silver"] #sl-auth .btn-social:last-child:nth-child(odd) { grid-column: 1 / -1; }
html[data-theme="silver"] #sl-auth .btn-social:hover { border-color: var(--sl-border-strong); background: var(--sl-panel); }
html[data-theme="silver"] #sl-auth .btn-social:active { background: var(--sl-selected); }
html[data-theme="silver"] #sl-auth .btn-social-txt small { color: var(--sl-muted); line-height: 1.4; margin-top: 2px; }
html[data-theme="silver"] #sl-auth .au-divider { margin: 22px 0; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--sl-muted); }
html[data-theme="silver"] #sl-auth .au-label { font-size: 13px; color: var(--sl-ink); }
html[data-theme="silver"] #sl-auth :is(.au-label-link, .au-field-icon, .au-toggle) { color: var(--sl-muted); }
html[data-theme="silver"] #sl-auth .au-label-link { font-size: 12px; }
html[data-theme="silver"] #sl-auth .au-input {
  color: var(--sl-ink);
  background: var(--sl-panel);
  border: 1px solid var(--sl-border-strong);
  border-radius: 10px;
  font-size: 15px;
  height: 48px;
}
html[data-theme="silver"] #sl-auth .au-input::placeholder { color: var(--sl-muted); opacity: 1; }
html[data-theme="silver"] #sl-auth .au-input:-webkit-autofill {
  -webkit-text-fill-color: var(--sl-ink) !important;
  caret-color: var(--sl-ink);
  -webkit-box-shadow: 0 0 0 1000px var(--sl-panel) inset;
}
html[data-theme="silver"] #sl-auth .au-toggle { width: 42px; height: 42px; right: 3px; }
html[data-theme="silver"] #sl-auth .au-toggle:hover { color: var(--sl-ink); }
html[data-theme="silver"] #sl-auth .sl-auth-mode-hint { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--sl-muted); }
html[data-theme="silver"] #sl-auth .btn-primary {
  background: var(--sl-primary);
  color: var(--sl-primary-ink);
  min-height: 48px;
  border-radius: 10px;
  box-shadow: none;
  transition: background-color 160ms ease;
  transform: none;
}
html[data-theme="silver"] #sl-auth .btn-primary::before { display: none; }
html[data-theme="silver"] #sl-auth .btn-primary:hover { background: var(--sl-ink); color: var(--sl-bg); }
html[data-theme="silver"] #sl-auth .btn-primary:disabled { background: var(--sl-selected); color: var(--sl-muted); opacity: 1; cursor: wait; }
html[data-theme="silver"] #sl-auth .auth-legal { margin: 18px 0 0; color: var(--sl-muted); font-size: 11px; line-height: 1.65; }
html[data-theme="silver"] #sl-auth .auth-legal a { color: var(--sl-ink); text-decoration: underline; text-underline-offset: 3px; border: 0; }
html[data-theme="silver"] #sl-auth .auth-form-foot { border-top: 1px solid var(--sl-line); margin: 22px 0 0; padding-top: 18px; color: var(--sl-muted); font-size: 12px; line-height: 1.7; }
html[data-theme="silver"] #sl-auth .auth-form-foot a { color: var(--sl-ink); font-weight: 600; }
html[data-theme="silver"] #sl-auth .auth-hint { background: var(--sl-panel); color: var(--sl-ink); border-color: var(--sl-border-strong); }
html[data-theme="silver"] #sl-auth :is(a, button, input):focus-visible { outline: 2px solid var(--sl-primary); outline-offset: 3px; }
html[data-theme="silver"] .max-modal { overflow-y: auto; padding: 24px 16px; }
html[data-theme="silver"] .max-modal-card { background: var(--sl-surface); color: var(--sl-ink); border: 1px solid var(--sl-line); box-shadow: none; max-height: calc(100dvh - 48px); overflow-y: auto; border-radius: 16px; }
html[data-theme="silver"] .max-modal-card :is(h3, .max-modal-close) { color: var(--sl-ink); }
html[data-theme="silver"] .max-modal-card p { color: var(--sl-muted); }
html[data-theme="silver"] .max-modal-card .btn-primary { background: var(--sl-primary); color: var(--sl-primary-ink); box-shadow: none; }
html[data-theme="silver"] .max-modal-card .max-code-input { background: var(--sl-panel); color: var(--sl-ink); border-color: var(--sl-border-strong); }
html[data-theme="silver"] .max-modal-card .max-retry { color: var(--sl-ink); }
@media (max-width: 1080px) {
  html[data-theme="silver"] #sl-auth .auth-form-wrap { padding: 32px; }
  html[data-theme="silver"] #sl-auth .sl-auth-story-intro { padding-inline: 28px; }
  html[data-theme="silver"] #sl-auth .sl-auth-story-intro h2 { font-size: 34px; }
  html[data-theme="silver"] #sl-auth .sl-auth-benefits { padding-inline: 28px; }
}
@media (max-width: 880px) {
  html[data-theme="silver"] #sl-auth { grid-template-columns: minmax(0, 1fr); max-width: 600px; margin-top: 8px; }
  html[data-theme="silver"] #sl-auth .auth-form-wrap { order: -1; padding: 32px; }
  html[data-theme="silver"] #sl-auth .sl-auth-visual { min-height: 400px; }
  html[data-theme="silver"] #sl-auth .sl-auth-logo { display: none; }
  html[data-theme="silver"] #sl-auth .sl-auth-story-intro { padding: 28px 32px 200px; }
  html[data-theme="silver"] #sl-auth .sl-auth-story-intro h2 { font-size: 28px; }
}
@media (max-width: 560px) {
  html[data-theme="silver"] #sl-auth { margin: 0 0 24px; border: 0; border-radius: 0; background: transparent; overflow: visible; }
  html[data-theme="silver"] #sl-auth .auth-form-wrap { padding: 12px 0 28px; background: transparent; }
  html[data-theme="silver"] #sl-auth .auth-form { max-width: none; }
  html[data-theme="silver"] #sl-auth .auth-form-head h1 { font-size: 28px; }
  html[data-theme="silver"] #sl-auth .sl-auth-back { margin-bottom: 22px; }
  html[data-theme="silver"] #sl-auth .au-input { font-size: 16px; }
  html[data-theme="silver"] #sl-auth .auth-legal { font-size: 12px; }
  html[data-theme="silver"] #sl-auth .sl-auth-story { border-radius: 12px; overflow: hidden; }
  html[data-theme="silver"] #sl-auth .sl-auth-story-intro { padding-inline: 24px; }
  html[data-theme="silver"] #sl-auth .sl-auth-benefits { padding-inline: 24px; }
  html[data-theme="silver"] .max-modal { align-items: center; padding: 12px; }
  html[data-theme="silver"] .max-modal-card { max-height: calc(100dvh - 24px); border-radius: 12px; }
}
@media (max-width: 360px) {
  html[data-theme="silver"] #sl-auth .sl-auth-providers { gap: 8px; }
  html[data-theme="silver"] #sl-auth .btn-social { font-size: 12px; gap: 7px; padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme="silver"] #sl-auth *, html[data-theme="silver"] .max-modal-card { animation: none !important; transition: none !important; }
}
