/* ========================================
   AUTH PAGES STYLES
======================================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  padding: 2rem;
}

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

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.auth-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  transition: var(--transition);
  z-index: 10;
}

.auth-close-btn:hover {
  background: var(--gray-200);
  color: var(--secondary);
}

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

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.auth-logo .logo-icon {
  width: 50px;
  height: 50px;
}

.auth-title {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--gray-500);
  font-size: 0.95rem;
}

.auth-form .form-group {
  margin-bottom: 1.25rem;
}

.auth-form .btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--gray-400);
  font-size: 0.9rem;
}

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

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-500);
  font-size: 0.95rem;
}

.auth-footer a {
  color: var(--primary);
  font-weight: 500;
}

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

.password-toggle {
  position: relative;
}

.password-toggle .form-input {
  padding-right: 3rem;
}

.password-toggle-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  padding: 0.25rem;
}

.password-toggle-btn:hover {
  color: var(--gray-600);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.form-check label {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.form-check a {
  color: var(--primary);
}

/* Email Verification */
.verification-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verification-icon svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
}

.resend-link {
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
}

.resend-link:hover {
  text-decoration: underline;
}

.resend-link.disabled {
  color: var(--gray-400);
  cursor: not-allowed;
}

/* User Menu */
.user-menu {
  position: relative;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--gray-100);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
}

.user-menu-btn:hover {
  background: var(--gray-200);
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 100;
}

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

.user-dropdown-header {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-100);
}

.user-dropdown-header p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.user-dropdown-header span {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.user-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.user-dropdown-menu a:hover {
  background: var(--gray-50);
  color: var(--primary);
}

.user-dropdown-menu a svg {
  width: 18px;
  height: 18px;
}

.user-dropdown-menu .logout {
  border-top: 1px solid var(--gray-100);
  color: var(--danger);
}

.user-dropdown-menu .logout:hover {
  background: #fef2f2;
  color: var(--danger);
}

/* Member Badge */
.member-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.member-badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.member-badge.approved {
  background: #dcfce7;
  color: #166534;
}

.member-badge.admin {
  background: var(--primary-light);
  color: var(--primary);
}
