/* ============================================
   AUTH PAGE SPECIFIC STYLES
   ============================================ */

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: var(--bs-bg-gradient);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bs-bg-card);
  padding: 32px 28px;
  border-radius: var(--bs-border-radius);
  box-shadow: var(--bs-box-shadow);
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.auth-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--bs-body-color);
  margin-bottom: 6px;
}

.auth-subtitle {
  color: var(--bs-text-muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.auth-card input {
  width: 90%;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: var(--bs-border-radius-sm);
  background: var(--bs-bg-soft);
  border: 1px solid var(--bs-border-color);
  color: var(--bs-body-color);
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.auth-card input:focus {
  border-color: var(--bs-primary);
  outline: none;
}

.auth-error {
  display: none;
  background: rgba(var(--bs-danger-rgb), 0.15);
  color: var(--bs-danger);
  padding: 10px 14px;
  border-radius: var(--bs-border-radius-sm);
  font-size: 0.9rem;
  margin-bottom: 14px;
  border: 1px solid rgba(var(--bs-danger-rgb), 0.4);
}

.auth-success {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--bs-border-radius-sm);
  background: rgba(var(--bs-success-rgb), 0.15);
  color: var(--bs-primary);
  border: 1px solid rgba(var(--bs-success-rgb), 0.4);
  display: none;
}

.auth-btn {
  background: var(--bs-primary);
  display: inline-block;
  color: var(--bs-body-color);
  text-decoration: none;
  text-transform: capitalize;
  font-family: Sans-serif;
  font-size: 18px;
  padding: 4px 20px;
  border-radius: 7px;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 0 10px 25px rgba(var(--bs-primary-rgb), 0.35);
  border: none;
}

.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(var(--bs-primary-rgb), 0.45);
}

.auth-links {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
}

.auth-links a {
  color: var(--bs-body-color);
  font-size: 0.9rem;
  text-decoration: none;
  transition: 0.2s ease;
}

.auth-links a:hover {
  opacity: 0.8;
}

/* Profile Page */

.profile-page {
  padding: 80px 0 40px;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
}

.profile-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.profile-card {
  background: var(--bs-bg-card);
  border-radius: var(--bs-border-radius);
  padding: 20px 18px;
  box-shadow: var(--bs-box-shadow);
  animation: fadeIn 0.4s ease;
}

.profile-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.profile-info p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.profile-info strong {
  color: var(--bs-primary);
}

.logout-btn {
  margin-top: 16px;
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--bs-border-radius-pill);
  background: var(--bs-danger);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.logout-btn:hover {
  opacity: 0.9;
}

.orders-list {
  background: var(--bs-bg-soft);
  padding: 14px;
  border-radius: var(--bs-border-radius-sm);
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--bs-border-color-translucent);
}

.orders-list p {
  color: var(--bs-text-muted);
}

#changePassForm input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: var(--bs-border-radius-sm);
  background: var(--bs-bg-soft);
  border: 1px solid var(--bs-border-color);
  color: var(--bs-body-color);
  font-size: 0.95rem;
}

#changePassForm input:focus {
  border-color: var(--bs-primary);
  outline: none;
}

/* Wishlist */

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.wishlist-card {
  background: var(--bs-bg-card);
  border-radius: var(--bs-border-radius);
  padding: 16px;
  box-shadow: var(--bs-box-shadow);
  position: relative;
  animation: fadeIn 0.4s ease;
  display: flex;
  flex-direction: column;
  transition: 0.25s ease;
  margin-top: 32px;
}

.wishlist-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--bs-box-shadow-sm);
}

.wishlist-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: var(--bs-border-radius-sm);
  margin-bottom: 14px;
  cursor: pointer;
}

.wishlist-add-cart {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--bs-border-radius-pill);
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-link-hover-color));
  color: var(--bs-dark);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: 0.2s ease;
  margin-top: auto;
  box-shadow: 0 10px 25px rgba(var(--bs-primary-rgb), 0.35);
}

.wishlist-add-cart:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(var(--bs-primary-rgb), 0.45);
}

.wishlist-add-cart:disabled {
  background: rgba(var(--bs-secondary-rgb), 0.3);
  color: var(--bs-text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .wishlist-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 26px 22px;
  }
}

@media (max-width: 480px) {
  .auth-title {
    font-size: 1.6rem;
  }
}

