/* ==========================================================================
   CUSTOMER AUTHENTICATION & ACCOUNT STYLES - Arogye / Mateshwari Enterprises
   Modern, Scoped, Responsive E-commerce Authentication
   ========================================================================== */

/* Page Wrapper */
.auth-page {
  width: 100%;
  min-height: calc(100vh - 350px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px 60px;
  box-sizing: border-box;
}

/* Centered Auth Card */
.auth-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 10px 30px -5px rgba(0, 143, 130, 0.08), 0 2px 6px rgba(0, 0, 0, 0.02);
  padding: 36px 32px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #008f82 0%, #22c55e 50%, #ff8f00 100%);
}

/* Card Header */
.auth-header {
  text-align: center;
  margin-bottom: 26px;
}

.auth-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #e6f4f1;
  color: #008f82;
  font-size: 24px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0, 143, 130, 0.15);
}

.auth-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(20px, 3.5vw, 24px);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  line-height: 1.25;
}

.auth-subtitle {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Form Groups & Inputs */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.auth-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-label .required-star {
  color: #ef4444;
  margin-left: 3px;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 16px;
  pointer-events: none;
  transition: color 0.2s ease;
}

.auth-input {
  width: 100%;
  height: 48px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px 14px 10px 42px;
  font-size: 14px;
  color: #0f172a;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s ease;
}

.auth-input:focus {
  border-color: #008f82;
  box-shadow: 0 0 0 3px rgba(0, 143, 130, 0.12);
}

.auth-input-wrapper:focus-within .auth-input-icon {
  color: #008f82;
}

.auth-input.is-invalid {
  border-color: #ef4444 !important;
  background-color: #fffafb;
}

/* Password eye toggle */
.auth-password-toggle {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.auth-password-toggle:hover {
  color: #008f82;
}

/* Inline Error Text */
.auth-error {
  font-size: 12px;
  color: #ef4444;
  font-weight: 500;
  display: none;
  margin-top: 2px;
}

.auth-error:not(:empty) {
  display: block;
}

/* Flash & Global Alerts */
.auth-alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.auth-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.auth-alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.auth-alert-info {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  color: #0f766e;
}

/* Checkboxes & Helpers */
.auth-row-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

.auth-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #008f82;
  cursor: pointer;
}

.auth-link {
  color: #008f82;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.auth-link:hover {
  color: #ff8f00;
  text-decoration: underline;
}

/* Primary Action Button */
.auth-btn-primary {
  width: 100%;
  min-height: 48px;
  background: #008f82;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 143, 130, 0.25);
  font-family: inherit;
  margin-top: 4px;
}

.auth-btn-primary:hover {
  background: #05554e;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 143, 130, 0.32);
}

.auth-btn-primary:active {
  transform: scale(0.985);
}

.auth-btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-btn-orange {
  background: #ff8f00 !important;
  box-shadow: 0 4px 14px rgba(255, 143, 0, 0.25) !important;
}

.auth-btn-orange:hover {
  background: #e07d00 !important;
  box-shadow: 0 6px 18px rgba(255, 143, 0, 0.35) !important;
}

/* Card Bottom Footer */
.auth-card-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  font-size: 13.5px;
  color: #64748b;
}

/* ==================== OTP VERIFICATION BOXES ==================== */
.otp-wrapper {
  margin: 12px 0 20px;
}

.otp-boxes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.otp-digit-input {
  width: 48px;
  height: 54px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: #0f172a;
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.18s ease;
  font-family: inherit;
  caret-color: #008f82;
}

.otp-digit-input:focus {
  border-color: #008f82;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 143, 130, 0.15);
  transform: translateY(-2px);
}

.otp-digit-input.has-value {
  border-color: #008f82;
  background: #f0fdfa;
}

/* OTP Resend & Countdown Section */
.otp-resend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
}

.otp-countdown-text {
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.otp-countdown-timer {
  font-weight: 700;
  color: #008f82;
  font-family: monospace;
  font-size: 14px;
}

.btn-otp-resend {
  background: none;
  border: none;
  color: #008f82;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.btn-otp-resend:hover {
  color: #ff8f00;
}

.btn-otp-resend:disabled {
  color: #94a3b8;
  cursor: not-allowed;
  text-decoration: none;
}

/* ==================== CUSTOMER ACCOUNT DASHBOARD ==================== */
.auth-account-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px 60px;
  box-sizing: border-box;
}

.account-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

/* Sidebar */
.account-sidebar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.account-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 16px;
}

.account-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e6f4f1;
  color: #008f82;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-user-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px 0;
}

.account-user-phone {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
}

.account-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #475569;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.account-nav-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.account-nav-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.account-nav-item.active {
  background: #e6f4f1;
  color: #008f82;
  font-weight: 700;
}

.account-nav-item.logout-link {
  color: #ef4444;
  margin-top: 10px;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.account-nav-item.logout-link:hover {
  background: #fee2e2;
  color: #b91c1c;
}

/* Account Main Content */
.account-content-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.account-section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

@media (max-width: 480px) {
  .auth-card {
    padding: 26px 18px;
    border-radius: 16px;
  }

  .otp-digit-input {
    width: 38px;
    height: 48px;
    font-size: 18px;
    gap: 5px;
  }

  .auth-row-flex {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==================== ORDER TRACKING STEPPER & CARDS ==================== */
.order-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.order-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.order-meta-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-meta-id {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.order-meta-date {
  font-size: 12.5px;
  color: #64748b;
}

.order-badges-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.order-status-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.order-status-placed {
  background: #e0f2fe;
  color: #0284c7;
}

.order-status-processing {
  background: #fef3c7;
  color: #d97706;
}

.order-status-shipped {
  background: #ede9fe;
  color: #7c3aed;
}

.order-status-delivered {
  background: #dcfce7;
  color: #15803d;
}

.order-status-cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

.order-payment-badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
}

.order-payment-badge.paid {
  background: #e6f4f1;
  color: #008f82;
}

/* 4-Step Visual Stepper */
.order-stepper-box {
  position: relative;
  margin: 18px 0 22px;
}

.order-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 14px;
  background: #f8fafc;
  border-radius: 12px;
  position: relative;
}

.order-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.order-step-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-bottom: 8px;
  transition: all 0.25s ease;
}

.order-step.completed .order-step-icon {
  background: #008f82;
  border-color: #008f82;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 143, 130, 0.15);
}

.order-step.active .order-step-icon {
  background: #ff8f00;
  border-color: #ff8f00;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 143, 0, 0.2);
  animation: pulse-step 2s infinite;
}

@keyframes pulse-step {
  0% { box-shadow: 0 0 0 0 rgba(255, 143, 0, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(255, 143, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 143, 0, 0); }
}

.order-step-title {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 2px;
}

.order-step.completed .order-step-title,
.order-step.active .order-step-title {
  color: #0f172a;
}

.order-step-desc {
  font-size: 11px;
  color: #94a3b8;
}

.order-step.completed .order-step-desc {
  color: #008f82;
}

.order-step.active .order-step-desc {
  color: #ff8f00;
  font-weight: 600;
}

.order-step-line {
  position: absolute;
  top: 35px;
  left: 12%;
  right: 12%;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}

.order-step-line-fill {
  height: 100%;
  background: #008f82;
  transition: width 0.4s ease;
}

/* Items in Order */
.order-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.order-item-row:last-child {
  border-bottom: none;
}

.order-item-thumb {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.order-item-details {
  flex: 1;
  min-width: 0;
}

.order-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  display: block;
}

.order-item-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.order-item-price {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  text-align: right;
  flex-shrink: 0;
}

/* Order Footer Summary & Address */
.order-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  background: #fbfcfd;
  border-radius: 8px;
  padding: 12px;
}

.order-info-block {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.45;
}

.order-info-block strong {
  color: #0f172a;
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .order-stepper {
    padding: 12px 6px;
  }
  .order-step-icon {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .order-step-title {
    font-size: 10.5px;
  }
  .order-step-desc {
    display: none;
  }
  .order-footer-grid {
    grid-template-columns: 1fr;
  }
}

