/**
 * Auth Pages Redesign - Login & Subscription
 * Modern, clean, and beautiful
 */

/* ==================== AUTH CONTAINER ==================== */

.auth-container {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-primary) !important;
  border-radius: 24px !important;
  padding: 48px !important;
  max-width: 480px !important;
  width: 90% !important;
  box-shadow:
    var(--shadow-xl),
    0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease !important;
}

.auth-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
      var(--accent-primary),
      var(--accent-secondary),
      #06b6d4);
}

.auth-container:hover {
  transform: translateY(-4px);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(99, 102, 241, 0.1) !important;
}

/* ==================== AUTH LOGO ==================== */

.auth-logo {
  text-align: center;
  margin-bottom: 40px !important;
}

.auth-logo i {
  font-size: 3.5rem !important;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px !important;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.3));
}

.auth-logo span {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  letter-spacing: -0.02em;
  display: block;
}

.auth-logo p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ==================== AUTH FORM ==================== */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 24px !important;
}

.auth-form .form-group {
  margin-bottom: 0 !important;
}

.auth-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  margin-bottom: 10px !important;
}

.auth-form label i {
  font-size: 1rem;
  color: var(--accent-primary);
  opacity: 0.7;
}

.auth-form input {
  width: 100%;
  padding: 14px 16px !important;
  font-size: 0.9375rem !important;
  background: var(--bg-tertiary) !important;
  border: 2px solid var(--border-primary) !important;
  border-radius: 12px !important;
  color: var(--text-primary) !important;
  transition: all 0.2s ease !important;
}

.auth-form input:hover {
  border-color: var(--border-accent) !important;
}

.auth-form input:focus {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
  background: var(--bg-secondary) !important;
  outline: none;
}

.auth-form input::placeholder {
  color: var(--text-tertiary) !important;
}

/* ==================== AUTH ACTIONS ==================== */

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 12px !important;
  margin-top: 32px !important;
}

.auth-actions .btn {
  width: 100%;
  padding: 14px 24px !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  transition: all 0.2s ease !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-actions .btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.auth-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.auth-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 2px solid var(--border-primary) !important;
  color: var(--text-primary) !important;
}

.auth-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--border-accent) !important;
}

/* ==================== AUTH MESSAGE ==================== */

#loginMessage,
#changePasswordMessage {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 16px;
  display: none;
}

#loginMessage.success,
#changePasswordMessage.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-success);
  display: block;
}

#loginMessage.error,
#changePasswordMessage.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--accent-danger);
  display: block;
}

/* ==================== SUBSCRIPTION PAGE ==================== */

.subscription-container {
  max-width: 1200px !important;
  margin: 0 auto;
  padding: 48px 24px;
}

.subscription-header {
  text-align: center;
  margin-bottom: 48px;
}

.subscription-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.subscription-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ==================== SUBSCRIPTION CARDS ==================== */

.subscription-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.subscription-card {
  background: var(--bg-secondary) !important;
  border: 2px solid var(--border-primary) !important;
  border-radius: 20px !important;
  padding: 32px !important;
  transition: all 0.3s ease !important;
  position: relative;
  overflow: hidden;
}

.subscription-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.subscription-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-accent) !important;
  box-shadow: var(--shadow-xl);
}

.subscription-card:hover::before {
  opacity: 1;
}

.subscription-card.featured {
  border-color: var(--accent-primary) !important;
  background: linear-gradient(135deg,
      rgba(99, 102, 241, 0.05) 0%,
      rgba(139, 92, 246, 0.05) 100%) !important;
}

.subscription-card.featured::before {
  opacity: 1;
}

.subscription-card.featured .subscription-badge {
  display: block;
}

.subscription-badge {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.subscription-plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.subscription-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 8px;
  line-height: 1;
}

.subscription-price span {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.subscription-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.subscription-features {
  list-style: none;
  margin-bottom: 32px;
}

.subscription-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.subscription-features li i {
  color: var(--accent-success);
  font-size: 1rem;
}

.subscription-features li.disabled {
  opacity: 0.4;
}

.subscription-features li.disabled i {
  color: var(--text-tertiary);
}

.subscription-cta {
  width: 100%;
  padding: 14px 24px;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.subscription-card.featured .subscription-cta {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.subscription-card.featured .subscription-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.subscription-card:not(.featured) .subscription-cta {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border-primary);
  color: var(--text-primary);
}

.subscription-card:not(.featured) .subscription-cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-accent);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
  .auth-container {
    padding: 32px 24px !important;
    width: 95% !important;
  }

  .auth-logo i {
    font-size: 2.5rem !important;
  }

  .auth-logo span {
    font-size: 1.5rem !important;
  }

  .subscription-header h1 {
    font-size: 2rem;
  }

  .subscription-plans {
    grid-template-columns: 1fr;
  }

  .subscription-price {
    font-size: 2.5rem;
  }
}