.auth-page {
  min-height: calc(100vh - 80px);
  padding: 96px 20px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 96, 48, 0.18), transparent),
    linear-gradient(180deg, #f8faf9 0%, #eef3f0 100%);
}

.auth-shell {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(10, 46, 30, 0.14);
  background: #fff;
}

.auth-brand {
  position: relative;
  padding: 48px 40px;
  color: #fff;
  background: linear-gradient(145deg, #0a2e1e 0%, #006030 55%, #0d4a32 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.auth-brand::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(168, 112, 0, 0.18);
  filter: blur(2px);
}

.auth-brand img {
  width: min(240px, 72%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
}

.auth-brand h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
}

.auth-brand p {
  margin: 0;
  opacity: 0.88;
  line-height: 1.7;
  max-width: 34ch;
}

.auth-panel {
  padding: 42px 38px;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 96, 48, 0.08);
  color: #006030;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.auth-panel h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.auth-panel .auth-sub {
  margin: 0 0 24px;
  color: #5b6670;
  line-height: 1.6;
}

.auth-form label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 600;
  font-size: 14px;
}

.auth-form input {
  width: 100%;
  border: 1.5px solid #dbe3df;
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  background: #fbfcfb;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input:focus {
  outline: none;
  border-color: #006030;
  box-shadow: 0 0 0 4px rgba(0, 96, 48, 0.12);
}

.auth-form .hint {
  margin-top: 6px;
  font-size: 12px;
  color: #7a8680;
}

.auth-type-label {
  display: block;
  margin: 16px 0 8px;
  font-weight: 700;
  font-size: 14px;
}

.auth-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-type {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1.5px solid #dbe3df;
  border-radius: 14px;
  background: #fbfcfb;
  cursor: pointer;
}

.auth-type input { margin-top: 3px; accent-color: #006030; }

.auth-type span { display: grid; gap: 2px; }
.auth-type small { color: #7a8680; font-weight: 500; font-size: 12px; }
.auth-type:has(input:checked) { border-color: #006030; background: #f3faf6; }

.auth-actions {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.auth-actions .btn {
  width: 100%;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 700;
}

.auth-actions .btn-ghost {
  background: transparent;
  border: 1.5px solid #dbe3df;
  color: #243029;
}

.auth-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 14px;
}

.auth-links a {
  color: #006030;
  font-weight: 700;
  text-decoration: none;
}

.auth-alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.auth-alert:not(.is-error):not(.is-success) {
  background: #fff8e8;
  color: #7a5b12;
  border: 1px solid #f3e0b5;
}

.auth-alert.is-error {
  background: #fff1f1;
  color: #b42318;
  border: 1px solid #fecaca;
}

.auth-alert.is-success {
  background: #ecfdf3;
  color: #067647;
  border: 1px solid #abefc6;
}

.account-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 108px 20px 70px;
}

.acc-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 28px 28px 26px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 120% at 100% 0%, rgba(168, 112, 0, 0.28), transparent 55%),
    linear-gradient(135deg, #0a2e1e 0%, #006030 58%, #0d4a32 100%);
  box-shadow: 0 18px 48px rgba(10, 46, 30, 0.22);
}

.acc-hero-copy .auth-kicker {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.acc-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
}

.acc-hero p {
  margin: 0;
  opacity: 0.86;
  max-width: 42ch;
  line-height: 1.6;
}

.acc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.acc-hero-actions .btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.account-stat {
  background: #fff;
  border: 1px solid #e6ece8;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(10, 46, 30, 0.05);
}

.account-stat small {
  display: block;
  color: #6b7680;
  margin-bottom: 6px;
}

.account-stat strong {
  font-size: 24px;
  color: #0a2e1e;
}

.acc-phone {
  font-size: 18px !important;
  letter-spacing: 0.02em;
}

.acc-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 22px;
  padding: 6px;
  border-radius: 16px;
  background: #eef3f0;
}

.acc-tabs a {
  flex: 1;
  min-width: 120px;
  text-align: center;
  text-decoration: none;
  color: #42514a;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 12px;
  transition: 0.18s ease;
}

.acc-tabs a.is-active {
  background: #fff;
  color: #006030;
  box-shadow: 0 6px 18px rgba(10, 46, 30, 0.08);
}

.account-card {
  background: #fff;
  border: 1px solid #e6ece8;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(10, 46, 30, 0.05);
}

.account-card h3 {
  margin: 0 0 16px;
  font-size: 20px;
}

.acc-card-head {
  margin-bottom: 16px;
}

.acc-card-head h3 {
  margin-bottom: 4px;
}

.acc-card-head p {
  margin: 0;
  color: #6b7680;
  font-size: 14px;
}

.order-badge {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 96, 48, 0.08);
  color: #006030;
  white-space: nowrap;
}

.order-badge.is-pending { background: #fff7e8; color: #a87000; }
.order-badge.is-processing { background: #eaf2ff; color: #175cd3; }
.order-badge.is-shipped { background: #eef8f2; color: #067647; }
.order-badge.is-completed { background: #ecfdf3; color: #05603a; }
.order-badge.is-cancelled { background: #fef3f2; color: #b42318; }

.acc-order-list {
  display: grid;
  gap: 12px;
}

.acc-order {
  border: 1px solid #e8eee9;
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(180deg, #fcfdfc, #f7faf8);
}

.acc-order-main {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
}

.acc-order-main strong {
  display: block;
  color: #0a2e1e;
}

.acc-meta {
  display: block;
  margin-top: 4px;
  color: #6b7680;
  font-size: 13px;
}

.acc-order-total {
  font-size: 18px;
  color: #0a2e1e;
}

.acc-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.acc-order-actions .btn,
.acc-cancel-form .btn {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-danger-outline {
  background: transparent;
  border: 1.5px solid #f3b0aa;
  color: #b42318;
}

.btn-danger {
  background: #b42318;
  color: #fff;
  border: 0;
  width: 100%;
  justify-content: center;
}

.acc-empty {
  text-align: center;
  padding: 36px 16px;
}

.acc-empty strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.acc-empty p {
  color: #6b7680;
  margin: 0 0 18px;
}

.acc-detail-head {
  margin-bottom: 18px;
}

.acc-back {
  display: inline-block;
  margin-bottom: 12px;
  color: #006030;
  font-weight: 700;
  text-decoration: none;
}

.acc-detail-title {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.acc-detail-title h2 {
  margin: 0;
  font-size: 26px;
}

.acc-hint {
  margin: 10px 0 0;
  color: #a87000;
  font-size: 13px;
}

.acc-detail-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
}

.acc-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.acc-items li {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2ef;
}

.acc-items li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.acc-items img,
.acc-item-ph {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: #eef3f0;
}

.acc-items strong {
  display: block;
  color: #0a2e1e;
}

.acc-items small {
  display: block;
  color: #6b7680;
  margin-top: 2px;
}

.acc-dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.acc-dl div {
  display: grid;
  gap: 2px;
}

.acc-dl dt {
  font-size: 12px;
  color: #6b7680;
}

.acc-dl dd {
  margin: 0;
  font-weight: 600;
  color: #0a2e1e;
  line-height: 1.45;
}

.acc-totals {
  display: grid;
  gap: 10px;
}

.acc-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #42514a;
}

.acc-totals .is-total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed #dbe3df;
  font-size: 17px;
  color: #0a2e1e;
}

.acc-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.acc-security-grid,
.acc-form-card {
  max-width: 720px;
}

.acc-security-grid {
  display: grid;
  gap: 16px;
}

.account-danger {
  border-color: #f3d1ce;
  background: linear-gradient(180deg, #fff, #fff8f7);
}

.account-danger h3 {
  color: #b42318;
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    padding: 32px 24px;
    text-align: center;
    align-items: center;
  }

  .auth-panel {
    padding: 28px 22px 34px;
  }

  .acc-detail-grid,
  .acc-order-main {
    grid-template-columns: 1fr;
  }

  .acc-order-actions {
    flex-direction: column;
  }

  .acc-order-actions .btn,
  .acc-order-actions form,
  .acc-order-actions button {
    width: 100%;
  }
}

