.auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.auth-card {
  width: 100%;
  max-width: 380px;
  padding: 32px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--raised);
  display: grid;
  gap: 20px;
}

.auth-card.wide { max-width: 460px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 600;
}
.brand svg { flex: none; }

.auth-form { display: grid; gap: 16px; }
.auth-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-form .btn { width: 100%; margin-top: 4px; }

@media (max-width: 420px) {
  .auth-card { padding: 24px 20px; }
  .auth-form .row { grid-template-columns: 1fr; }
}

.error-card { text-align: center; justify-items: center; }
.error-card .brand { justify-content: center; }
.error-code { margin: 0; font-size: 64px; font-weight: 700; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.error-title { margin: 0; font-size: 22px; font-weight: 600; }
.error-text { margin: 0; color: var(--muted); }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; }
.error-actions .btn { width: auto; min-width: 140px; margin-top: 0; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.error-actions [hidden] { display: none; }
.error-actions .btn.ghost { background: var(--bg); color: var(--ink); }
