/* ─── AUTH MODAL OVERLAY ──────────────────────────────────── */
.auth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-overlay.open { display: flex; }

/* ─── MODAL BOX ───────────────────────────────────────────── */
.auth-modal {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.auth-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.15s;
}

.auth-close:hover { color: var(--text); }

.auth-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  line-height: 1;
}

.auth-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: -0.5rem;
  line-height: 1.5;
}

/* ─── TABS ────────────────────────────────────────────────── */
.auth-tabs {
  display: flex;
  gap: 0;
  background: var(--surface2);
  border-radius: 8px;
  padding: 3px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  border: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
}

.auth-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ─── FORM FIELDS ─────────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.auth-field label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-field input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.625rem 0.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.auth-field input:focus {
  border-color: rgba(200, 245, 62, 0.4);
}

.auth-field input::placeholder { color: var(--muted); }

/* ─── SUBMIT BUTTON ───────────────────────────────────────── */
.auth-submit {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.7rem;
  background: var(--accent);
  color: #0a0a0f;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.15s, transform 0.1s;
  letter-spacing: 0.02em;
}

.auth-submit:hover   { opacity: 0.9; }
.auth-submit:active  { transform: scale(0.98); }
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── DIVIDER ─────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── GOOGLE OAUTH BUTTON ─────────────────────────────────── */
.auth-google {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.65rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: border-color 0.15s;
  width: 100%;
}

.auth-google:hover { border-color: rgba(255,255,255,0.2); }

.auth-google svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── STATUS MESSAGE ──────────────────────────────────────── */
.auth-msg {
  font-size: 0.75rem;
  text-align: center;
  min-height: 1rem;
  padding: 0.4rem 0;
  border-radius: 6px;
}

.auth-msg.error   { color: var(--accent2); }
.auth-msg.success { color: var(--accent3); }

/* ─── USER DROPDOWN (logged-in menu) ─────────────────────── */
.user-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 160px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.user-menu.open { display: block; }

.user-menu-item {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
}

.user-menu-item:hover { background: var(--surface2); color: var(--text); }
.user-menu-item.danger:hover { color: var(--accent2); }

.nav-user-wrap { position: relative; }
