/* ── AUTH UI ──────────────────────────────── */
.auth-overlay {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, rgba(15,23,42,0.85) 0%, rgba(5,8,20,0.95) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 20000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.4s ease;
}
.auth-overlay.hidden {
  opacity: 0; pointer-events: none;
}
.auth-card {
  width: min(400px, 92vw);
  background: linear-gradient(160deg, rgba(30,41,59,0.98), rgba(15,23,42,0.99));
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.05) inset;
  transform: translateY(20px) scale(0.98);
  animation: auth-in 0.4s cubic-bezier(0.2,1,0.3,1) forwards;
}
@keyframes auth-in {
  to { transform: translateY(0) scale(1); }
}
.auth-header {
  text-align: center; margin-bottom: 24px;
}
.auth-header h1 {
  font-family: var(--fd); font-weight: 900; font-size: 26px;
  background: linear-gradient(90deg, #fff, var(--mint));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 6px;
}
.auth-subtitle {
  font-family: var(--fu); font-size: 13px; color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600;
}
.auth-tabs {
  display: flex; gap: 8px; margin-bottom: 24px;
  background: rgba(255,255,255,0.05); padding: 6px; border-radius: 14px;
}
.auth-tab {
  flex: 1; padding: 10px; border: none; background: transparent;
  color: rgba(255,255,255,0.5); font-family: var(--fd); font-weight: 700;
  font-size: 14px; border-radius: 10px; cursor: pointer; transition: all 0.2s;
}
.auth-tab.active {
  background: rgba(255,255,255,0.1); color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.auth-form {
  display: flex; flex-direction: column; gap: 14px;
}
.auth-form.hidden { display: none; }
.auth-input {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: #fff; font-family: var(--fu); font-size: 15px; outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.auth-input::placeholder { color: rgba(255,255,255,0.3); }
.auth-input:focus {
  border-color: var(--mint); background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(46,230,166,0.15);
}
.auth-btn {
  width: 100%; padding: 16px; border-radius: 14px; border: none;
  background: linear-gradient(145deg, var(--mint), var(--mint-dim));
  color: #042f24; font-family: var(--fd); font-weight: 800; font-size: 16px;
  cursor: pointer; box-shadow: 0 8px 24px rgba(46,230,166,0.25);
  transition: filter 0.15s, transform 0.1s; margin-top: 8px;
}
.auth-btn:active { transform: scale(0.98); }
.auth-btn:hover { filter: brightness(1.1); }
.auth-error {
  color: var(--rose); font-family: var(--fu); font-size: 13px; text-align: center;
  background: rgba(251,113,133,0.1); padding: 10px; border-radius: 8px;
  border: 1px solid rgba(251,113,133,0.2);
}
.auth-error.hidden { display: none; }
.auth-loading {
  text-align: center; color: var(--mint); font-family: var(--fu); font-size: 14px;
  font-weight: 600; padding: 20px 0;
}
