/* ═══════════════════════════════════════════
   GIEESKRECIPES — Auth Modal Styles
═══════════════════════════════════════════ */

/* ── Modal base (override for auth) ─────── */
#authModal .modal-panel {
  max-width: 420px;
  background: var(--bg-panel);
}

.auth-inner {
  padding: 2.5rem 2rem 2rem;
}

.auth-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  text-align: center;
}
.auth-brand .logo-s { color: var(--gold); font-style: italic; }

.auth-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 4px;
}

.auth-sub {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ── Error / Success banners ─────────────── */
.auth-error, .auth-success {
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.auth-error {
  background: rgba(216, 90, 48, 0.12);
  border: 1px solid rgba(216, 90, 48, 0.3);
  color: #F08060;
}
.auth-success {
  background: rgba(29, 158, 117, 0.12);
  border: 1px solid rgba(29, 158, 117, 0.3);
  color: #4ECDA4;
}

/* ── Social buttons ──────────────────────── */
.auth-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1.25rem;
}

.btn-social {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  font-family: inherit;
}
.btn-social:hover {
  border-color: var(--border-subtle);
  background: var(--bg-card);
  transform: translateY(-1px);
}
.btn-social svg { flex-shrink: 0; }

/* ── Divider ─────────────────────────────── */
.auth-divider {
  text-align: center;
  color: var(--text-hint);
  font-size: 12px;
  position: relative;
  margin: 1rem 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--border-dim);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

/* ── Form fields ─────────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: 14px; }

.auth-field { display: flex; flex-direction: column; gap: 6px; }

.auth-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.auth-input-wrap {
  position: relative;
}

.auth-input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 11px 42px 11px 14px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
/* For inputs not inside .auth-input-wrap */
.auth-field > .auth-input { padding-right: 14px; }

.auth-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.auth-input::placeholder { color: var(--text-hint); }
.auth-input.error { border-color: #D85A30; }

.auth-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  transition: color 0.2s;
}
.auth-eye:hover { color: var(--text-primary); }

/* ── Password strength ───────────────────── */
.auth-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.strength-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 2px;
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
}
.strength-label {
  font-size: 11px;
  font-weight: 600;
  min-width: 56px;
  text-align: right;
}

/* ── Submit button ───────────────────────── */
.auth-submit {
  width: 100%;
  justify-content: center;
  padding: 13px;
  font-size: 15px;
  margin-top: 4px;
  position: relative;
}

/* ── Terms ───────────────────────────────── */
.auth-terms {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
}
.auth-link {
  color: var(--gold);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.auth-link:hover { color: var(--gold-light); text-decoration: underline; }

/* ── Switch line ─────────────────────────── */
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 1.25rem;
}

/* ══════════════════════════════════════════
   USER MENU (logged-in state in nav)
══════════════════════════════════════════ */
#userMenu {
  position: relative;
  display: none;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-full);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.user-avatar-btn:hover {
  border-color: var(--border-gold);
  background: var(--bg-card);
}

#userMenuAvatar {
  width: 28px; height: 28px;
  border-radius: var(--r-full);
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #0A0A09;
  overflow: hidden;
  flex-shrink: 0;
}

#userMenuName {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dropdown */
#userDropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
  overflow: hidden;
}
#userDropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.user-drop-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-dim);
}
.user-drop-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.user-drop-email {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.user-drop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.user-drop-item:hover { background: var(--bg-elevated); color: var(--text-primary); }
.user-drop-item i { font-size: 16px; color: var(--text-muted); }
.user-drop-item.danger { color: #F08060; }
.user-drop-item.danger i { color: #F08060; }
.user-drop-item.danger:hover { background: rgba(216,90,48,0.1); }

.user-drop-divider {
  height: 1px;
  background: var(--border-dim);
  margin: 4px 0;
}

@media (max-width: 520px) {
  .auth-inner { padding: 2rem 1.25rem 1.5rem; }
  #userMenuName { display: none; }
}
