/* ── auth.css ────────────────────────────────────────────────
   Soft-gate auth modal + header indicator.
   Inherits color vars from style.css.
─────────────────────────────────────────────────────────────── */

/* Header signed-in indicator */
.auth-status {
  font-size: 13px;
  color: rgba(240, 246, 252, 0.7);
  margin-right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.auth-status-email { color: var(--text); }
.auth-status-signout {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}
.auth-status-signout:hover { text-decoration: underline; }

/* Modal overlay (full-screen scrim) */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Modal dialog */
.auth-dialog {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 14px;
  max-width: 420px;
  width: 100%;
  padding: 28px 28px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  color: var(--text);
}
.auth-dialog h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
}
.auth-dialog p {
  color: rgba(240, 246, 252, 0.7);
  font-size: 14px;
  margin: 0 0 18px;
}
.auth-dialog input[type="email"],
.auth-dialog input[type="text"] {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
}
.auth-dialog input[type="email"]:focus,
.auth-dialog input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
}
.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.auth-btn {
  padding: 10px 18px;
  background: var(--accent);
  color: #0d1117;
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.1s, opacity 0.15s;
}
.auth-btn:hover { transform: translateY(-1px); }
.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.auth-link {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  padding: 0;
}
.auth-link:hover { text-decoration: underline; }
.auth-error {
  color: #f87171;
  font-size: 13px;
  margin-top: 10px;
  min-height: 18px;
}
.auth-note {
  color: rgba(240, 246, 252, 0.5);
  font-size: 12px;
  margin-top: 14px;
}
