:root {
  color-scheme: light;
  --paper: #f9f8f7;
  --ink: #30302e;
  --muted: #73736e;
  --line: #e9e8e5;
  --accent: #337ab8;
  font: 15px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.auth-shell {
  width: min(100%, 560px);
  min-height: 100svh;
  margin: auto;
  padding: 48px 32px 24px;
  display: flex;
  flex-direction: column;
}
.auth-brand { display: flex; align-items: center; gap: 7px; align-self: flex-start; text-decoration: none; }
.brand-symbol { width: 30px; height: 30px; object-fit: contain; }
.brand-wordmark { width: 117px; height: auto; }
.auth-content { padding: 48px 0; flex: 1; }
h1 { font-size: 26px; letter-spacing: -.6px; line-height: 1.25; margin: 0 0 16px; font-weight: 600; }
h2 { font-size: 13px; font-weight: 500; color: var(--muted); margin: 32px 0 12px; }
p { margin: 0 0 24px; }
.auth-lead { font-size: 15px; color: var(--muted); max-width: 440px; overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: 4px; }
button, input { font: inherit; }
.primary-action, form button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: white;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: background 130ms, transform 130ms;
}
.primary-action:hover, form button:hover { background: #454541; }
.primary-action:active, form button:active { transform: translateY(1px); }
:focus-visible { outline: 3px solid #337ab880; outline-offset: 4px; }
.auth-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.auth-note, footer { color: var(--muted); font-size: 13px; }
.auth-note { margin-top: 20px; }
.identity-list { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--line); }
.identity-list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.identity-list span { overflow-wrap: anywhere; min-width: 0; }
.identity-list small { color: var(--muted); white-space: nowrap; align-self: center; }
.link-steps { margin: 0 0 24px; padding-left: 22px; }
.link-steps li { padding-left: 5px; margin-bottom: 16px; }
.link-steps li::marker { color: var(--muted); font-size: 13px; }
.link-steps strong { display: block; font-size: 14px; font-weight: 500; }
.link-steps span { display: block; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.auth-success { color: #37795b; border-left: 2px solid #37795b; padding-left: 14px; }
.back-link { display: inline-block; margin-top: 28px; color: var(--muted); font-size: 14px; }
footer { padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 540px) {
  .auth-shell { padding: 28px 24px 20px; }
  .auth-content { padding: 36px 0; }
  h1 { font-size: 24px; }
  .primary-action { width: 100%; gap: 12px; }
  .auth-actions { display: block; }
  .identity-list li { flex-direction: column; gap: 3px; }
  .identity-list small { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
