body[data-page="account"] #shop > main:not(:has(#customerDashboard:not([hidden]))) {
  --auth-header: 74px;
  --auth-bottom-nav: 0px;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: calc(100svh - var(--auth-header) - var(--auth-bottom-nav));
  padding: 24px 16px;
  background: radial-gradient(ellipse min(610px, 65vw) 390px at 50% 48%, #36363b 0%, #19191c 55%, #080808 100%);
}

body[data-page="account"] #shop > main:has(#customerAuthPanel:not([hidden]))::after {
  content: "WEROSTYLE" / "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  color: #ffffff0d;
  font-size: min(15vw, 200px);
  font-weight: 900;
  font-style: italic;
  line-height: .9;
  letter-spacing: -.065em;
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
}

body[data-page="account"] #shop > main:not(:has(#customerDashboard:not([hidden]))) .account-title {
  display: none;
}

body[data-page="account"] #customerProfile:has(#customerAuthPanel:not([hidden])) {
  margin: 0;
}

body[data-page="account"] #customerAuthPanel {
  width: min(100%, 440px);
  margin: 0 auto;
  padding: clamp(18px, 3.2vw, 32px);
  border: 1px solid #f1f1f128;
  border-radius: 16px;
  background: #1c1c1e;
  color: #fff;
  box-shadow: 0 18px 60px #0009, 0 0 42px #f8f8ff10;
  text-align: center;
}

.auth-wordmark {
  display: inline-block;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.055em;
}
.auth-wordmark span {font-weight: 400}
.auth-avatar {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 17px auto 11px;
  border: 1px solid #eeeeee52;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #454548, #242427 75%);
  box-shadow: 0 0 21px #ffffff23;
}
.auth-avatar svg {width: 27px; height: 27px; filter: drop-shadow(0 0 4px #fff6)}
body[data-page="account"] :is(#customerAuthTitle, #customerRecoveryTitle) {
  margin: 0;
  font-size: clamp(24px, 3vw, 29px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.045em;
}
:is(#customerAuthTitle, #customerRecoveryTitle):focus {outline: none}
:is(#customerAuthSubtitle, #customerRecoverySubtitle) {margin: 7px 0 19px; color: #bebec3; font-size: 14px}

#customerAuthPanel .auth-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 47px;
  padding: 8px 12px;
  border: 1px solid #fff;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 800;
  transition: background .2s, box-shadow .2s;
}
#customerAuthPanel .auth-primary:hover:not(:disabled) {
  background: #e8e8e9;
  color: #111;
  box-shadow: 0 0 14px #ffffff25;
}
#customerAuthPanel .auth-primary:disabled {background: #bdbdc1; color: #333; cursor: wait}
.auth-primary svg {width: 19px; height: 19px; flex: none}
.auth-divider {display: flex; align-items: center; gap: 12px; margin: 15px 0; color: #b7b7bd; font-size: 12px}
.auth-divider::before, .auth-divider::after {content: ""; flex: 1; height: 1px; background: #424247}

:is(#customerAuthForm, .auth-recovery-form) {text-align: left}
:is(#customerAuthForm, .auth-recovery-form) label {margin: 0 0 6px; color: #eee; font-size: 13px; font-weight: 650}
.auth-field {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr) auto;
  align-items: center;
  padding-inline: 12px 3px;
  border: 1px solid #49494e;
  border-radius: 10px;
  background: #28282a;
  color: #c2c2c6;
  transition: border-color .2s, box-shadow .2s;
}
.auth-field:focus-within {border-color: #fff; box-shadow: 0 0 0 2px #fff2, 0 0 12px #fff1}
.auth-field:has([aria-invalid="true"]) {border-color: #ff9e9e}
.auth-field > svg, #customerPasswordToggle svg {width: 18px; height: 18px}
.auth-field input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 6px 8px 6px 10px;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
}
.auth-field input::placeholder {color: #b0b0b6; opacity: 1}
.auth-field input:autofill {box-shadow: 0 0 0 36px #28282a inset; -webkit-text-fill-color: #fff}
#customerPasswordToggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d4d4da;
}
.auth-eye-slash {display: none}
#customerPasswordToggle[aria-pressed="true"] .auth-eye-slash {display: block}
#customerAuthPanel :is(a,button):focus-visible {outline: 2px solid #fff; outline-offset: 2px}
.auth-field-error {margin: 5px 0 0; color: #ffaaa9; font-size: 12px}
.auth-field-error:empty, :is(#customerAuthMessage, #customerRecoveryMessage):empty {display: none}
:is(#customerAuthForm, .auth-recovery-form) label:not(:first-child) {margin-top: 12px}
#customerAuthForm #customerSubmit, .auth-recovery-form .auth-primary {margin-top: 15px}
#customerVerifyHint {margin:0 0 12px;color:#bebec3;overflow-wrap:anywhere}
.auth-field.auth-otp-field {grid-template-columns:minmax(0,1fr);padding-inline:4px}
:is(#customerAuthMessage, #customerRecoveryMessage) {margin: 10px 0 0; font-size: 13px; color: #d5d5d9}
:is(#customerAuthMessage, #customerRecoveryMessage)[data-error] {color: #ffaaa9}
.auth-text-action {
  min-height: 40px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: #dedee2;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#customerForgotPassword {display: block; margin: 2px 0 -8px auto}
#customerRecoveryBack {margin-top: 12px}
#customerRecoveryBack.auth-primary {text-decoration: none}
.auth-switch {display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 0 6px; margin-top: 12px; font-size: 13px; color: #c3c3c7}
#customerSwitch {
  min-height: 36px;
  padding: 4px 3px;
  border: 0;
  background: none;
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#customerSwitch:hover:not(:disabled) {color: #ddd}

@media (max-width: 760px) {
  body[data-page="account"] #shop > main:not(:has(#customerDashboard:not([hidden]))) {
    --auth-header: 49px;
    --auth-bottom-nav: calc(64px + env(safe-area-inset-bottom));
    background: radial-gradient(ellipse 95% 46% at 50% 47%, #313136, #171719 61%, #080808);
  }
  #customerAuthPanel .auth-primary {min-height: 48px}
  #customerSwitch {min-height: 44px}
}

@media (prefers-reduced-motion: reduce) {
  #customerAuthPanel *, #customerAuthPanel *::before {transition: none}
}
