[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.auth-page { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 56px 0 96px; }
.auth-panel {
  width: min(460px, 100%); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(26px, 5vw, 38px);
}
.auth-panel h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.auth-panel .lead { margin-top: 10px; }
.auth-form { display: grid; gap: 18px; margin-top: 26px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 650; font-size: 0.875rem; color: var(--ink); }
.auth-form input {
  width: 100%; min-height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 10px 12px; background: var(--surface); color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.auth-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.14); }
.auth-form input:disabled { background: var(--sunken); color: var(--ink-muted); }
.auth-form small { color: var(--ink-muted); font-weight: 400; font-size: 0.8125rem; line-height: 1.45; }

.auth-divider {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin: 24px 0;
  color: var(--ink-muted); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
}
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: var(--border); }

.google-button {
  width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 11px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--ink); font-weight: 600; font-size: 0.9375rem; cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.google-button:hover { border-color: var(--ink-muted); background: var(--sunken); }
.google-button svg { width: 19px; height: 19px; }
.google-button svg path:nth-child(1) { fill: #4285f4; }
.google-button svg path:nth-child(2) { fill: #34a853; }
.google-button svg path:nth-child(3) { fill: #fbbc05; }
.google-button svg path:nth-child(4) { fill: #ea4335; }

.auth-links { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 22px; font-size: 0.875rem; }
.auth-links a { color: var(--accent); font-weight: 600; text-decoration: none; }
.auth-links a:hover { color: var(--accent-hover); text-decoration: underline; }
#google-consent-wrap { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 0.875rem; }
#google-consent-wrap input { width: auto; min-height: 0; margin-top: .3em; accent-color: var(--accent); }
.account-sidebar .button + .form-status { margin-bottom: 0; }

@media (max-width: 620px) {
  .nav-actions { gap: 8px; }
  .auth-page { padding-top: 28px; align-items: start; }
  .auth-links { flex-direction: column; }
}
