.account-page {
  --account-ink: #2d2119;
  --account-muted: #6e5748;
  --account-line: #d8cbbd;
  --account-focus: #a46335;
  color: var(--account-ink);
  background: #f2ece4;
}
.account-header {
  min-height: 4.7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  max-width: 88rem;
  margin: auto;
  padding: .7rem clamp(1rem, 4vw, 3.6rem);
}
.account-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: inherit;
  font: clamp(1.15rem, 3vw, 1.48rem) Georgia, serif;
}
.account-brand img { object-fit: contain; border-radius: 50%; }
.account-brand small { font: .63rem system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.account-back { color: var(--account-ink); text-underline-offset: .25em; font-size: .88rem; }
.account-layout {
  width: min(calc(100% - clamp(1rem, 5vw, 4rem)), 81rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  min-height: 41rem;
  padding: 0;
  margin: 0 auto clamp(.75rem, 4vw, 3rem);
  background: #fffaf4;
  border: 1px solid #e0d5c9;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 18px 50px #482c1915;
}
.account-editorial {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #58402e;
  min-height: 32rem;
}
.account-editorial img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 49%; }
.account-editorial::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, #251407e8);
}
.account-editorial-copy {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  padding: clamp(1.3rem, 4vw, 3.2rem);
  color: #fff8ee;
}
.account-editorial-copy p { font-size: .8rem; letter-spacing: .17em; text-transform: uppercase; margin: 0 0 .45rem; }
.account-editorial-copy span { display: block; max-width: 17ch; font: clamp(2rem, 4.7vw, 4rem)/1.03 Georgia, serif; }
.account-panel { align-self: center; min-width: 0; padding: clamp(1.25rem, 4.5vw, 4rem); }
.account-content { width: min(100%, 26rem); margin: auto; }
.account-content h1 { margin: 0; font: clamp(2.25rem, 4.7vw, 4.15rem)/1.04 Georgia, serif; letter-spacing: -.035em; }
.account-intro { color: var(--account-muted); margin: .85rem 0 1.35rem; }
.account-switch { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; padding: .26rem; border-radius: .55rem; background: #f0e8df; margin-bottom: 1rem; }
.account-switch button {
  color: var(--account-muted); border: 1px solid transparent; border-radius: .4rem;
  background: transparent; padding: .55rem .5rem; min-height: 2.6rem;
}
.account-switch button[aria-pressed="true"] { color: var(--account-ink); background: #fffaf4; border-color: #e1d4c7; box-shadow: 0 1px 3px #482c1921; }
.account-switch button:hover { color: #3a2518; background: #fbf3e9; }
.account-social {
  min-height: 2.85rem; display: grid; place-items: center; padding: .55rem .9rem;
  color: #362719; border: 1px solid #ad9783; border-radius: .5rem; text-decoration: none; font-weight: 600;
}
.account-social:hover { background: #f3e8db; border-color: #91684b; }
.account-divider { display: grid; grid-template-columns: 1fr auto 1fr; gap: .65rem; align-items: center; font-size: .82rem; color: var(--account-muted); }
.account-divider::before, .account-divider::after { content: ""; height: 1px; background: var(--account-line); }
.account-page .account-form { gap: .45rem; }
.account-field { display: grid; gap: .45rem; margin-top: .4rem; }
.account-form > label, .account-field > label { font-weight: 600; color: var(--account-ink); }
.account-form input { min-height: 2.95rem; border-radius: .5rem; border-color: #bfae9f; padding: .63rem .75rem; background: #fffdfa; }
.account-password { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.account-password input { grid-area: 1 / 1 / 2 / 3; padding-right: 5.25rem; }
.account-password button { grid-area: 1 / 2 / 2 / 3; align-self: center; margin-inline: .35rem; padding: .36rem .4rem; background: transparent; color: #69472e; border-color: transparent; font-size: .82rem; }
.account-text { background: transparent; border: 0; color: #69472e; padding: .38rem 0; font-size: .86rem; text-decoration: underline; text-underline-offset: .19em; }
.account-forgot { justify-self: end; }
.account-return { justify-self: center; }
.account-primary { min-height: 3.1rem; background: #4d2e20; border-color: #4d2e20; color: #fffaf4; border-radius: .55rem; margin-top: .35rem; font-weight: 600; }
.account-primary:hover { background: #67412b; }
.account-primary:active, .account-social:active { transform: translateY(1px); }
.account-switch button, .account-social, .account-primary { transition: background-color .17s, border-color .17s, transform .17s; }
.account-page :focus-visible { outline: 2px solid var(--account-focus); outline-offset: 3px; }
.account-content #orders .card { background: #fffdfa; }
.account-content .account-message:empty { display: none; }
.account-page .account-message[data-kind="error"] { background: #fff1e8; border-color: #d8a68d; color: #632b20; }
@media (max-width: 720px) {
  .account-layout { grid-template-columns: 1fr; width: min(calc(100% - 1rem), 34rem); }
  .account-header { min-height: 3.8rem; }
  .account-editorial { min-height: clamp(10.5rem, 34vw, 15rem); }
  .account-editorial img { object-position: center 45%; }
  .account-editorial-copy { padding: .8rem 1.25rem; }
  .account-editorial-copy p { font-size: .69rem; }
  .account-editorial-copy span { font-size: clamp(1.4rem, 5.5vw, 2.2rem); max-width: none; }
  .account-content { width: 100%; }
  .account-panel { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .account-switch button, .account-social, .account-primary { transition: none; }
}
