/* =====================================================================
   Auth pages (login/register/forgot/reset) + Customer Account Panel
   ===================================================================== */

.auth-section { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.auth-box {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
  padding: 44px; max-width: 440px; width: 100%; margin: 0 auto;
}
.auth-box h2 { margin-bottom: 6px; }
.auth-box > p { color: var(--clr-ink-soft); margin-bottom: 24px; font-size: .92rem; }
.auth-box label { display: block; font-size: .85rem; font-weight: 700; margin: 14px 0 6px; }
.auth-box input {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--clr-line); font-family: var(--font-body);
}
.auth-links-row { text-align: right; margin-top: 8px; font-size: .85rem; }
.auth-links-row a { color: var(--clr-accent); font-weight: 600; }
.auth-box .btn-place-order { margin-top: 22px; }
.auth-switch { text-align: center; margin-top: 22px; font-size: .9rem; color: var(--clr-ink-soft); }
.auth-switch a { color: var(--clr-accent); font-weight: 700; }
.auth-error { background: #fdecea; color: #c62828; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .88rem; }
.auth-success { background: #e8f5e9; color: #2e7d32; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .88rem; }

/* ---------- Customer Account Panel ---------- */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.account-sidebar { background: #fff; border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-soft); position: sticky; top: 110px; }
.account-user { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--clr-line); margin-bottom: 16px; }
.account-user img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.account-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: .92rem; transition: var(--transition); }
.account-nav a:hover, .account-nav a.active { background: var(--clr-bg); color: var(--clr-accent); }
.account-nav a.logout-link { color: var(--clr-rose); margin-top: 10px; }

.account-content { background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-soft); }
.account-content h2 { margin-bottom: 20px; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 30px; }
.dash-stat-card { background: var(--clr-bg); border-radius: var(--radius-md); padding: 22px; text-align: center; }
.dash-stat-card i { font-size: 1.6rem; color: var(--clr-accent); margin-bottom: 8px; }
.dash-stat-card h3 { font-size: 1.6rem; }
.dash-stat-card span { font-size: .85rem; color: var(--clr-ink-soft); }

.order-row-card { border: 1px solid var(--clr-line); border-radius: var(--radius-md); padding: 18px 20px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.order-status-pill { padding: 6px 14px; border-radius: 20px; font-size: .78rem; font-weight: 700; text-transform: capitalize; }
.status-pending { background: #fff3e0; color: #e65100; }
.status-confirmed { background: #e3f2fd; color: #1565c0; }
.status-packed { background: #ede7f6; color: #5e35b1; }
.status-shipped { background: #e0f2f1; color: #00695c; }
.status-delivered { background: #e8f5e9; color: #2e7d32; }
.status-cancelled { background: #fdecea; color: #c62828; }

.address-card { border: 1px solid var(--clr-line); border-radius: var(--radius-md); padding: 18px; margin-bottom: 14px; position: relative; }
.address-card .default-tag { position: absolute; top: 14px; right: 14px; background: var(--clr-ink); color: #fff; font-size: .7rem; padding: 3px 10px; border-radius: 12px; }
.address-actions { display: flex; gap: 12px; margin-top: 10px; font-size: .85rem; }
.address-actions a, .address-actions button { color: var(--clr-accent); font-weight: 700; background: none; border: none; cursor: pointer; }

.wishlist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.profile-form { max-width: 460px; }
.profile-form label { display: block; font-weight: 700; font-size: .85rem; margin: 14px 0 6px; }
.profile-form input { width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--clr-line); }

@media (max-width: 900px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .dash-stats, .wishlist-grid { grid-template-columns: repeat(2, 1fr); }
}
