/* =========================================
   AUTH PAGES - Login, Signup, Account
   ========================================= */

.df-auth-body {
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(251, 191, 36, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(56, 189, 248, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #020617 0%, #0a0f1a 50%, #020617 100%);
  min-height: 100vh;
}

.df-header-simple {
  background: transparent;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

/* Auth Card */
.auth-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  box-shadow: 
    0 0 60px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(251, 191, 36, 0.05);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #f9fafb;
  margin: 0 0 0.5rem;
}

.auth-subtitle {
  font-size: 0.95rem;
  color: var(--df-text-muted, #9ca3af);
  margin: 0;
  line-height: 1.5;
}

/* Auth Buttons */
.auth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-btn-google {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.auth-btn-google:hover:not(:disabled) {
  background: #f3f4f6;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.auth-btn-primary {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #020617;
}

.auth-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--df-text-muted, #64748b);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, 0.2);
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.auth-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #e5e7eb;
}

.auth-field input {
  padding: 0.85rem 1rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.6);
  color: #f9fafb;
  font-size: 1rem;
  transition: all 0.15s ease;
}

.auth-field input:focus {
  outline: none;
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.auth-field input::placeholder {
  color: #64748b;
}

/* Error */
.auth-error {
  padding: 0.75rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.5rem;
  color: #f87171;
  font-size: 0.9rem;
  text-align: center;
}

/* Actions */
.auth-actions {
  margin-top: 0.5rem;
}

/* Forgot password */
.auth-forgot {
  text-align: center;
  margin-top: 0.5rem;
}

.auth-forgot a {
  color: var(--df-text-muted, #9ca3af);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.auth-forgot a:hover {
  color: #fbbf24;
}

/* Toggle */
.auth-toggle {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  font-size: 0.9rem;
  color: var(--df-text-muted, #9ca3af);
}

.auth-toggle a {
  color: #fbbf24;
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.3rem;
}

.auth-toggle a:hover {
  text-decoration: underline;
}

/* Back link */
.auth-back {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  color: var(--df-text-muted, #9ca3af);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.auth-back:hover {
  color: #f9fafb;
}

/* =========================================
   AUTH MODAL (for inline login)
   ========================================= */

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.auth-modal-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
}

.auth-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(148, 163, 184, 0.1);
  color: #9ca3af;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 1;
}

.auth-modal-close:hover {
  background: rgba(148, 163, 184, 0.2);
  color: #f9fafb;
}

/* =========================================
   USER MENU (logged in state)
   ========================================= */

.user-menu {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(251, 191, 36, 0.3);
}

.user-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: #020617;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #e5e7eb;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown {
  position: relative;
}

.user-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.6);
  cursor: pointer;
  transition: all 0.15s ease;
}

.user-dropdown-btn:hover {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(30, 41, 59, 0.6);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 180px;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.75rem;
  padding: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.15s ease;
}

.user-dropdown:hover .user-dropdown-menu,
.user-dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  color: #e5e7eb;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.user-dropdown-item:hover {
  background: rgba(148, 163, 184, 0.1);
}

.user-dropdown-item.is-danger {
  color: #f87171;
}

.user-dropdown-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.15);
  margin: 0.4rem 0;
}

/* Premium badge */
.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #020617;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 480px) {
  .auth-card {
    padding: 2rem 1.5rem;
  }
  
  .auth-title {
    font-size: 1.5rem;
  }
}







