/* css/profile.css - Customer Login & Past Orders */
.auth-input-group {
  margin-bottom: 1.25rem;
}

.auth-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.auth-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}
.auth-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* OTP 4-Box Inputs */
.otp-boxes {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.otp-digit {
  width: 48px;
  height: 54px;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
}
.otp-digit:focus {
  border-color: var(--color-primary);
  outline: none;
}

/* Past Orders List */
.order-history-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.order-history-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.order-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  border-bottom: 1px dashed var(--color-border);
  padding-bottom: 0.5rem;
}

.order-no {
  font-weight: 700;
  color: var(--color-primary);
}

.order-items-summary {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.order-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =========================================================
   DEDICATED ACCOUNT PAGE STYLES (account.html)
   ========================================================= */
.account-hero-strip {
  background: linear-gradient(135deg, var(--color-surface-soft) 0%, rgba(224, 122, 95, 0.08) 100%);
  border-bottom: 1px solid var(--color-border);
  padding: 2.5rem 0;
  margin-bottom: 2rem;
}

.account-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

@media (max-width: 860px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
}

.account-sidebar-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}

.account-user-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.25rem;
}

.account-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.account-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.account-nav-item {
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.15s ease;
}

.account-nav-item:hover {
  background: var(--color-surface-soft);
  color: var(--color-text);
}

.account-nav-item.active {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.account-nav-item.active .nav-icon {
  filter: brightness(1.2);
}

.account-main-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  min-height: 480px;
}

.account-pane-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.account-pane-header h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-text);
  margin: 0 0 0.25rem;
}

.account-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* Auth Guard Card */
.auth-guard-wrap {
  max-width: 520px;
  margin: 3rem auto 5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.auth-guard-icon {
  font-size: 3.2rem;
  margin-bottom: 1rem;
  display: inline-block;
}
