.auth-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  background: rgba(5, 8, 12, 0.78); backdrop-filter: blur(6px);
}
.auth-overlay.open { display: flex; }
.auth-modal {
  position: relative;
  width: 100%; max-width: 420px; margin: 20px;
  background: var(--card, #0f172a);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 32px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.auth-modal h2 { margin: 0 0 4px; font-size: 1.5rem; }
.auth-modal .auth-sub { color: var(--text-secondary, #8892a8); margin: 0 0 20px; font-size: 0.9rem; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.auth-tab {
  flex: 1; padding: 10px; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--text-secondary, #8892a8);
  border: 1px solid rgba(255,255,255,0.08); font: inherit;
}
.auth-tab.active { background: var(--accent, #10b981); color: #04110b; border-color: transparent; }
.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; font-size: 0.8rem; margin-bottom: 6px; color: var(--text-secondary, #8892a8); }
.auth-field input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text, #f1f5f9); font: inherit; box-sizing: border-box;
}
.auth-submit {
  width: 100%; padding: 13px; border-radius: 10px; border: none; cursor: pointer;
  background: var(--accent, #10b981); color: #04110b; font-weight: 600; font: inherit;
  margin-top: 6px;
}
.auth-submit:disabled { opacity: 0.6; cursor: default; }
.auth-error { color: #f87171; font-size: 0.85rem; min-height: 1.2em; margin-top: 10px; }
.auth-close {
  position: absolute; top: 18px; right: 22px; background: none; border: none;
  color: var(--text-secondary, #8892a8); font-size: 1.4rem; cursor: pointer;
}
