[hidden] { display: none !important; }

.auth-login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  background: radial-gradient(ellipse at 20% 10%, var(--primary-bg) 0, transparent 65%), var(--bg);
}
.auth-card {
  width: min(100%, 410px);
  padding: 34px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.auth-brand { font-size: 36px; margin-bottom: 20px; }
.auth-eyebrow { color: var(--text-secondary); font-size: 13px; margin: 0 0 8px; }
.auth-card h1 { margin: 0 0 12px; font-size: 27px; line-height: 1.35; }
.auth-description { color: var(--text-secondary); font-size: 14px; line-height: 1.7; margin-bottom: 26px; }
.auth-card label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 600; }
.auth-card input { width: 100%; min-height: 46px; font-size: 16px; }
.auth-card button { width: 100%; min-height: 46px; justify-content: center; }
.auth-error { min-height: 24px; margin: 10px 0 14px; font-size: 13px; line-height: 1.6; color: var(--danger); }
.auth-footnote { margin: 23px 0 0; color: var(--text-secondary); font-size: 12px; text-align: center; }
.site-registration { display: inline-block; margin-top: 10px; color: inherit; font-size: 11px; text-decoration: none; }
.site-registration:hover { text-decoration: underline; }
.auth-unlock {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
  overflow-y: auto;
}
body[data-auth-state="expired"] #app,
body[data-auth-state="expired"] #bottom-nav,
body[data-auth-state="expired"] #modal-container { visibility: hidden; }
body[data-auth-state="pending"] #sidebar,
body[data-auth-state="pending"] #bottom-nav,
body[data-auth-state="error"] #sidebar,
body[data-auth-state="error"] #bottom-nav { visibility: hidden; }
.auth-session {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  margin: 18px 36px 0 256px;
  max-width: 1028px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
}
.auth-role { white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--primary); }
.auth-note { flex: 1; font-size: 12px; color: var(--text-secondary); }
.auth-session .btn { white-space: nowrap; }
body[data-auth-role="readonly"] .auth-session { background: var(--warning-bg); border-color: var(--warning); }
.auth-bootstrap-error { margin: 48px auto; max-width: 400px; text-align: center; color: var(--text-secondary); }
.auth-bootstrap-error p { margin: 0 0 18px; line-height: 1.7; }
@media (max-width: 768px) {
  .auth-card { padding: 28px 23px; }
  .auth-session { flex-wrap: wrap; gap: 8px; padding: 10px 13px; margin: 12px 16px 0; }
  .auth-note { flex-basis: 100%; order: 3; }
  .auth-session .btn { margin-left: auto; }
}
