.auth-layout {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: start center;
  padding: clamp(36px, 7vw, 80px) 16px;
}
.auth-card {
  width: 100%;
  max-width: 480px;
  padding: clamp(24px, 5vw, 40px);
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}
.auth-card--account { max-width: 600px; }
.auth-heading { margin-bottom: 24px; }
.auth-heading h1 { margin: 10px 0 8px; font-size: var(--fs-2xl); }
.auth-back-home, .auth-card a { color: var(--accent-primary); text-decoration: none; font-weight: var(--fw-semibold); }
.auth-page-content { color: var(--text-muted); }
.auth-form { display: grid; gap: 9px; }
.auth-form label { color: var(--text-primary); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.auth-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 48px;
  margin-bottom: 8px;
  padding: 0 14px;
  color: var(--text-primary);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  font: inherit;
}
.auth-form input:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--accent-soft); }
.auth-form small { margin: -6px 0 6px; color: var(--text-muted); }
.auth-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-label-row a { font-size: var(--fs-sm); }
.auth-check { display: flex; gap: 9px; align-items: center; margin: 2px 0 10px; cursor: pointer; }
.auth-submit {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--accent-primary);
  font: inherit;
  font-weight: var(--fw-semibold);
  cursor: pointer;
}
.auth-submit:hover { background: var(--accent-hover); }
.auth-switch { margin-top: 22px; text-align: center; }
.auth-notice { margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; font-size: var(--fs-sm); }
.auth-notice--error { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.auth-notice--success { color: var(--success); background: color-mix(in srgb, var(--success) 10%, transparent); }
.auth-social { margin-bottom: 18px; text-align: center; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--text-muted); font-size: var(--fs-xs); text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--border-light); }
.account-identity { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; padding: 16px; background: var(--bg-soft); border-radius: 12px; }
.account-identity img { border-radius: 50%; }
.account-identity strong, .account-identity span { display: block; }
.account-identity strong { color: var(--text-primary); }
.account-actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-light); font-size: var(--fs-sm); }
.account-actions .account-logout { color: var(--danger); }
@media (max-width: 520px) {
  .auth-layout { padding: 0; }
  .auth-card { min-height: calc(100vh - 70px); border: 0; border-radius: 0; box-shadow: none; }
  .account-actions { flex-direction: column; }
}
