.auth-user {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.35rem 0.7rem 0.15rem;
}

.auth-user-name {
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
}

.auth-user-email {
  color: var(--muted);
  font-size: var(--text-xs);
  word-break: break-all;
}

.auth-sign-out {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

body.auth-locked .app,
body.auth-locked .sidebar,
body.auth-locked .nav-toggle,
body.auth-locked .sidebar-backdrop {
  visibility: hidden;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.88);
}

.auth-overlay.hidden {
  display: none;
}

.auth-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.3rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.auth-card h2 {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
}

.auth-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.4;
}

.auth-card .btn {
  width: 100%;
  text-align: center;
  text-decoration: none;
}

.auth-error {
  background: #3f1d2a;
  border: 1px solid #9f1239;
  color: #fecdd3;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font-size: var(--text-sm);
}
