@font-face {
  font-family: 'Gambarino';
  src: url('../Gambarino-Regular.woff2') format('woff2');
  font-weight: 400;
}
@font-face {
  font-family: 'Switzer';
  src: url('../Switzer-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background: #F0EEE9;
  font-family: 'Switzer', 'Helvetica Neue', Arial, sans-serif;
  color: #111;
}
body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-top: env(safe-area-inset-top, 24px);
  padding-bottom: env(safe-area-inset-bottom, 24px);
}
.auth-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}
.auth-card h1 {
  font-family: 'Gambarino', Georgia, serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.auth-info, .auth-error, .auth-success {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
}
.auth-info    { background: #f7f7f5; color: #666; }
.auth-error   { background: #fce4ec; color: #c62828; }
.auth-success { background: #e8f5e9; color: #2e7d32; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.auth-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.auth-card input[type="password"],
.auth-card input[type="text"] {
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #F0EEE9;
  color: #111;
  outline: none;
  min-height: 48px;
}
.auth-card input:focus {
  border-color: #111;
  background: #fff;
}
.auth-btn {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1.5px solid rgba(17,17,17,0.25);
  background: transparent;
  color: #111;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  min-height: 48px;
}
.auth-btn:hover { border-color: #111; background: rgba(17,17,17,0.04); }
.auth-btn--primary {
  background: #111;
  color: #F0EEE9;
  border-color: #111;
}
.auth-btn--primary:hover { background: #000; }
.auth-card code {
  background: #f0f0ea;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: ui-monospace, monospace;
}
.auth-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #999;
  font-size: 13px;
  margin: 8px 0;
}
.auth-separator::before,
.auth-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ddd;
}
.auth-passkey-status {
  font-size: 13px;
  line-height: 1.5;
  color: #666;
  margin-top: 8px;
  text-align: center;
  min-height: 20px;
}
