/* Full-screen login/signup gate shown until a real account is signed in, plus the
   sign-out control added to the masthead. */

.auth-screen {
  position: fixed; inset: 0;
  background: var(--ground);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 100;
}
.auth-screen[hidden] { display: none; }
.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 4px 0 8px;
}
.auth-tagline {
  margin: 0 0 20px;
  color: var(--ink-muted);
  font-size: 0.88rem;
}
.auth-tabs {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
}
.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-right: 1px solid var(--line);
  padding: 8px 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
}
.auth-tab:last-child { border-right: none; }
.auth-tab.active { background: var(--accent-soft); color: var(--accent); }
.auth-error {
  color: var(--danger);
  background: var(--danger-soft);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 0.82rem;
  margin: -4px 0 14px;
}
.auth-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0;
  color: var(--ink-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.masthead-right {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
