/* ==========================================================================
   Cignet - Account, Auth & Policy Pages Stylesheet
   Covers: login.html, forgot-password.html, account-dashboard.html,
           account-order.html, account-download.html, account-wishlist.html,
           privacy-policy.html, term-condition.html, refund-return.html,
           cancellation-policy.html, delivery-policy.html
   ========================================================================== */

/* 01. Auth Pages (login.html, forgot-password.html) ---------------------- */
.auth-card {
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.auth-visual {
  position: relative;
  height: 100%;
  min-height: 540px;
}
.auth-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(var(--primary-rgb), .2) 0%, rgba(var(--primary-rgb), .88) 100%);
}
.auth-visual-quote {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 44px;
  color: var(--white);
}
.auth-visual-quote blockquote {
  font-family: var(--font-heading);
  font-size: 26px;
  font-style: italic;
  line-height: 1.45;
  margin-bottom: 16px;
}
.auth-visual-quote cite {
  font-style: normal;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}
.auth-form-pane {
  padding: 50px;
}
.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--divider);
  padding-bottom: 18px;
}
.auth-tabs .nav-link {
  border: 1px solid var(--divider);
  border-radius: var(--radius-pill);
  padding: 10px 26px;
  font-weight: 500;
  color: var(--heading);
  background: transparent;
}
.auth-tabs .nav-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.password-wrap {
  position: relative;
}
.password-wrap .form-control {
  padding-right: 48px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: var(--text);
  padding: 4px;
}
.password-toggle:hover {
  color: var(--primary);
}
.auth-divider {
  position: relative;
  text-align: center;
  margin: 26px 0;
}
.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--divider);
}
.auth-divider span {
  position: relative;
  background: var(--white);
  padding: 0 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text);
}
.social-auth-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.social-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--divider);
  background: var(--white);
  color: var(--heading);
  font-size: 14px;
  font-weight: 500;
  transition: all .25s var(--ease);
}
.social-auth-btn:hover {
  background: var(--cream);
  border-color: var(--primary);
}

.forgot-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
  text-align: center;
}
.forgot-icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--primary);
  font-size: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.forgot-card form {
  text-align: left;
  margin-top: 26px;
}

/* 02. Account Layout & Sidebar ------------------------------------------- */
.account-sidebar {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 110px;
}
.account-user-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--divider);
}
.account-user-box img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.account-user-box h4 {
  font-size: 20px;
  margin-bottom: 2px;
}
.account-user-box span {
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
}
.account-nav li + li {
  margin-top: 6px;
}
.account-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 15px;
  color: var(--heading);
  transition: all .25s var(--ease);
}
.account-nav a i {
  width: 18px;
  text-align: center;
  font-size: 15px;
}
.account-nav a:hover,
body.page-account-dashboard .account-nav a[href="account-dashboard.html"],
body.page-account-order .account-nav a[href="account-order.html"],
body.page-account-download .account-nav a[href="account-download.html"],
body.page-account-wishlist .account-nav a[href="account-wishlist.html"] {
  background: var(--primary);
  color: var(--white);
}

.account-panel {
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 32px;
}
.account-panel + .account-panel {
  margin-top: 28px;
}
.account-panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--divider);
}
.account-panel-head h3 {
  font-size: 26px;
}
.account-greeting {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}
.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--primary);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--primary);
  line-height: 1.1;
}
.stat-card span {
  font-size: 14px;
  color: var(--text);
}

.account-table {
  width: 100%;
  border-collapse: collapse;
}
.account-table thead th {
  background: var(--cream);
  color: var(--heading);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  padding: 15px 18px;
  border-bottom: 1px solid var(--divider);
  text-align: left;
}
.account-table tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--divider);
  vertical-align: middle;
  font-size: 15px;
}
.account-table tbody tr:last-child td {
  border-bottom: 0;
}

.status-badge {
  display: inline-block;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.status-completed,
.status-in-stock {
  background: rgba(60, 141, 90, .14);
  color: #2c6f46;
}
.status-processing {
  background: rgba(47, 61, 56, .12);
  color: var(--primary);
}
.status-on-hold,
.status-low-stock {
  background: rgba(201, 165, 92, .22);
  color: #82621d;
}
.status-cancelled {
  background: rgba(230, 87, 87, .14);
  color: #b73838;
}

.address-box {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 24px;
  height: 100%;
}
.address-box h4 {
  font-size: 20px;
  margin-bottom: 12px;
}
.wishlist-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.wishlist-item img {
  width: 66px;
  height: 76px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--cream);
  flex-shrink: 0;
}
.empty-state-box {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
}
.empty-state-box i {
  font-size: 38px;
  color: var(--primary);
  margin-bottom: 14px;
}

/* 03. Policy Pages ------------------------------------------------------- */
.policy-sidebar {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.policy-nav-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px;
}
.policy-nav-card h3 {
  font-size: 22px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--divider);
}
.policy-nav li + li {
  margin-top: 6px;
}
.policy-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--heading);
  transition: all .25s var(--ease);
}
.policy-nav a:hover,
body.page-privacy-policy .policy-nav a[href="privacy-policy.html"],
body.page-term-condition .policy-nav a[href="term-condition.html"],
body.page-refund-return .policy-nav a[href="refund-return.html"],
body.page-cancellation-policy .policy-nav a[href="cancellation-policy.html"],
body.page-delivery-policy .policy-nav a[href="delivery-policy.html"] {
  background: var(--primary);
  color: var(--white);
}
.policy-help-card {
  background: var(--primary);
  color: rgba(255, 255, 255, .85);
  border-radius: var(--radius);
  padding: 30px;
}
.policy-help-card h4 {
  color: var(--white);
  font-size: 24px;
  margin-bottom: 10px;
}

.policy-article {
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 44px;
}
.policy-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 22px;
}
.policy-callout {
  background: var(--cream);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 26px 0;
}
.policy-contact-box {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 26px;
  margin-top: 34px;
}

/* 04. Responsive --------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .auth-form-pane { padding: 38px; }
  .policy-article { padding: 34px; }
}

@media (max-width: 991.98px) {
  .account-sidebar,
  .policy-sidebar {
    position: static;
  }
  .auth-visual {
    min-height: 280px;
  }
}

@media (max-width: 767.98px) {
  .auth-form-pane,
  .forgot-card,
  .account-panel,
  .policy-article {
    padding: 24px;
  }
  .social-auth-btns {
    grid-template-columns: 1fr;
  }
  .account-table thead {
    display: none;
  }
  .account-table,
  .account-table tbody,
  .account-table tr,
  .account-table td {
    display: block;
    width: 100%;
  }
  .account-table tbody tr {
    border: 1px solid var(--divider);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 14px;
  }
  .account-table tbody td {
    padding: 7px 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .account-table tbody td[data-label]::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--heading);
    font-size: 14px;
  }
}

@media (max-width: 575.98px) {
  .auth-visual-quote { padding: 28px; }
  .auth-visual-quote blockquote { font-size: 20px; }
}
