:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: #1d1d1f;
  background: #f5f5f7;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; min-height: 100vh; min-height: 100svh; }
button, input { font: inherit; }
a, button, input { -webkit-tap-highlight-color: transparent; }
.auth-shell {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: clamp(28px, 7vh, 76px) max(24px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}
.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 30px;
  color: #1d1d1f;
  text-decoration: none;
  border-radius: 12px;
}
.auth-logo { display: block; width: 220px; max-width: 100%; height: auto; }
.auth-product { margin-top: -8px; font-size: 11px; line-height: 1.5; font-weight: 600; letter-spacing: 3px; color: #6e6e73; }
.auth-card {
  padding: 36px;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 24px;
  box-shadow: 0 8px 32px #1d1d1f06, 0 1px 3px #1d1d1f03;
}
.auth-eyebrow { margin: 0 0 14px; color: #6e6e73; font-size: 11px; font-weight: 650; letter-spacing: 1.35px; line-height: 1.6; }
h1 { margin: 0 0 12px; font-size: clamp(28px, 5vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -1px; overflow-wrap: anywhere; }
.auth-intro { margin: 0 0 28px; color: #6e6e73; font-size: 15px; line-height: 1.65; }
label { display: block; margin: 20px 0 8px; font-size: 14px; line-height: 1.5; font-weight: 600; }
input:not([type="hidden"]) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #c7c7cc;
  border-radius: 12px;
  background: #fff;
  color: #1d1d1f;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color .16s ease, box-shadow .16s ease;
}
input::placeholder { color: #75757a; opacity: 1; }
input:focus { outline: none; border-color: #007aff; box-shadow: 0 0 0 4px #007aff1f; }
button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  margin-top: 26px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #0066cc;
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}
button:hover { background: #0057b0; }
button:active { transform: scale(.99); }
button:focus-visible, a:focus-visible { outline: 3px solid #007aff; outline-offset: 4px; }
.auth-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 12px 0 0;
  padding: 8px 0;
  border-radius: 9px;
  color: #0066cc;
  text-align: center;
  text-decoration: none;
  text-underline-offset: 4px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}
.auth-secondary:hover { text-decoration: underline; }
.auth-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; padding-top: 22px; border-top: 1px solid #e5e5ea; color: #6e6e73; }
.auth-note > span { flex: none; font-size: 19px; line-height: 1.4; }
.auth-note p { margin: 0; font-size: 12px; line-height: 1.7; }
.auth-message { padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.6; margin: 0 0 20px; overflow-wrap: anywhere; }
.auth-error { color: #a82020; background: #fff1f0; border: 1px solid #f1d2cf; }
.auth-success { color: #256038; background: #edf8f0; border: 1px solid #cce4d3; }
.auth-dev { background: #fff7e6; border: 1px solid #eddbaf; border-radius: 12px; padding: 13px 15px; color: #745300; font-size: 13px; line-height: 1.6; margin-bottom: 20px; }
.auth-footer { text-align: center; color: #6e6e73; font-size: 12px; line-height: 1.7; margin-top: 26px; }
.auth-footer span { padding: 0 5px; }
@media (max-width: 480px) {
  .auth-shell { padding: max(28px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .auth-brand { margin-bottom: 26px; }
  .auth-logo { width: 188px; }
  .auth-product { margin-top: -7px; font-size: 10px; letter-spacing: 2.6px; }
  .auth-card { padding: 26px 22px; border-radius: 22px; }
  .auth-eyebrow { font-size: 10px; letter-spacing: 1px; }
  .auth-intro { font-size: 15px; }
}
@media (max-width: 380px) {
  h1 { font-size: 24px; letter-spacing: -.7px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (prefers-contrast: more) {
  .auth-card, input:not([type="hidden"]) { border-color: #6e6e73; }
  .auth-eyebrow, .auth-intro, .auth-note, .auth-product, .auth-footer { color: #454549; }
  input::placeholder { color: #555559; }
}
@media (forced-colors: active) { button { border-color: ButtonText; } }
