body.auth-page.center {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 32px;
  background: #f6f4f0;
  color: #171a20;
}

.auth-page {
  background:
    radial-gradient(circle at 20% 15%, rgba(181, 141, 102, 0.18), transparent 22%),
    linear-gradient(135deg, #f8f7f4 0%, #f4f0eb 100%);
}

.auth-page .auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  width: min(1180px, calc(100vw - 42px));
  max-width: 1180px;
  min-height: min(760px, calc(100svh - 64px));
  overflow: hidden;
  border: 1px solid var(--lux-line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--lux-shadow-lift);
}

.auth-page .auth-shell.login-layout {
  width: min(1180px, calc(100vw - 42px)) !important;
  max-width: 1180px;
}

.auth-page .auth-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 68px);
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(249,247,244,0.96));
}

.auth-page .auth-wordmark {
  align-self: flex-start;
  margin-bottom: clamp(22px, 4vh, 38px);
  color: var(--lux-orange);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1;
  text-decoration: none;
}

.auth-page .auth-wordmark img {
  width: 82px;
  height: auto;
  object-fit: contain;
}

.auth-page .auth-intro {
  margin-bottom: 24px;
}

.auth-page .auth-kicker {
  margin: 0 0 10px;
  color: var(--lux-accent-strong);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.auth-page .auth-intro h1 {
  max-width: 440px;
  margin: 0;
  color: var(--lux-ink);
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 3.2vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.auth-page .auth-subtitle {
  max-width: 420px;
  margin: 14px 0 0;
  color: var(--lux-muted);
  font-size: .94rem;
  line-height: 1.7;
}

.auth-page .auth-form {
  display: grid;
  gap: 17px;
  width: 100%;
}

.auth-page .auth-totp-login {
  display: grid;
  gap: 12px;
}
.auth-page .auth-totp-login h2,
.auth-page .auth-totp-login p { margin: 0; }
.auth-page .auth-totp-login h2 { color: var(--text); font-size: 1.15rem; }
.auth-page .auth-totp-login p { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.auth-page .auth-totp-login .auth-field { margin-top: 4px; }
.auth-page .auth-totp-back { justify-self: start; padding: 4px 0; border: 0; background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.auth-page .auth-forgot-password {
  justify-self: stretch;
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  min-height: 24px;
  margin: 8px 0 0;
  padding: 2px 0;
  position: relative;
  z-index: 1;
  font-size: .78rem;
  line-height: 1.4;
}

.auth-page .auth-field {
  display: grid;
  min-width: 0;
  gap: 8px;
  color: #353941;
  font-size: .83rem;
  font-weight: 650;
}

.auth-page .auth-field > input,
.auth-page .auth-field .password-field > input {
  width: 100%;
  height: 52px;
  min-width: 0;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #d7d0c8;
  border-radius: 12px;
  outline: 0;
  background: #fff;
  color: #171a20;
  font-size: .94rem;
  font-weight: 450;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.auth-page .auth-field > input::placeholder,
.auth-page .auth-field .password-field > input::placeholder {
  color: #9a978f;
  opacity: 1;
}

.auth-page .auth-field > input:focus,
.auth-page .auth-field .password-field > input:focus {
  border-color: var(--lux-orange);
  box-shadow: 0 0 0 4px rgba(231, 109, 57, 0.12);
}

.auth-page .auth-field .password-field {
  display: block;
  min-width: 0;
  position: relative;
}

.auth-page .auth-field .password-field > input {
  padding-right: 52px;
}

.auth-page .password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  width: 38px;
  height: 38px;
  min-height: 38px;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #6b6d72;
  cursor: pointer;
}

.auth-page .password-toggle:hover,
.auth-page .password-toggle[aria-pressed="true"] {
  transform: translateY(-50%);
  background: #f5f0ea;
  color: #b5432c;
}

.auth-page .password-toggle:focus-visible,
.auth-page a:focus-visible,
.auth-page button:focus-visible {
  outline: 3px solid rgba(231, 109, 57, 0.25);
  outline-offset: 2px;
}

.auth-page .password-toggle svg {
  width: 18px;
  height: 18px;
}

.auth-page .auth-primary-button,
.auth-page .auth-google-button {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 5px 0 0;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: .94rem;
  font-weight: 700;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.auth-page .auth-primary-button {
  background: linear-gradient(135deg, var(--lux-orange), var(--lux-orange-strong));
  color: #fff;
  box-shadow: 0 16px 28px rgba(231, 109, 57, 0.18);
}

.auth-page .auth-primary-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #d9652d, #b74a23);
}

.auth-page .auth-code-resend {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: #bd432b;
  cursor: pointer;
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
}

.auth-page .auth-code-resend:disabled {
  color: #777;
  cursor: wait;
}

.auth-page .auth-verification-status {
  margin: 0;
  color: #666970;
  font-size: .84rem;
  line-height: 1.45;
}

.auth-page [hidden] {
  display: none !important;
}

.auth-page .auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 18px;
  color: #929398;
  font-size: .8rem;
}

.auth-page .auth-divider::before,
.auth-page .auth-divider::after {
  height: 1px;
  flex: 1;
  background: #ece6e0;
  content: "";
}
.auth-page .auth-divider > span {
  position: relative;
  z-index: 1;
  min-width: 34px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-card, #fff) !important;
  color: var(--muted, #777) !important;
  font-size: .84rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

.auth-page .auth-google-button {
  margin: 0;
  border-color: #dcd8d2;
  background: #fff;
  color: #292c32;
  font-weight: 600;
}

.auth-page .auth-google-button:hover {
  border-color: #bfb7ae;
  background: #faf8f6;
}

.auth-page .auth-google-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.auth-page .auth-visual {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: linear-gradient(135deg, #f3ece4 0%, #efe6d9 42%, #f8f6f2 100%);
}

.auth-page .auth-visual::before {
  content: "JAMSTORE";
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  padding: 8px 12px;
  border: 1px solid rgba(31, 29, 26, 0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  color: var(--lux-accent-strong);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.auth-page .auth-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.auth-page .auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 23px;
  color: #666970;
  font-size: .82rem;
  line-height: 1.5;
}

.auth-page .auth-login-footer {
  justify-content: flex-end;
}

.auth-page .auth-footer p {
  margin: 0;
}

.auth-page .auth-switch-link {
  margin-top: 14px;
  text-align: center;
  color: #666970;
  font-size: .82rem;
  line-height: 1.5;
}

.auth-page .auth-switch-link a,
.auth-page .auth-footer a {
  color: #bd432b;
  font-weight: 700;
  text-decoration: none;
}

.auth-page .auth-switch-link a:hover,
.auth-page .auth-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-page .auth-muted-link {
  color: #5f6268 !important;
  font-weight: 550 !important;
}

.auth-page #loginLostPhoneLink,
.auth-page #loginRecoveryStep > a {
  justify-self: start;
  font-size: .86rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-page #loginRecoveryStep .auth-error {
  min-height: 1.3em;
}

.auth-page .auth-error {
  min-height: 0;
  margin: 0;
  color: #bd3025;
  font-size: .84rem;
  line-height: 1.45;
}

.trusted-device-dialog {
  position: fixed;
  inset: 0;
  height: fit-content;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  margin: auto;
  width: min(440px, calc(100% - 32px));
  max-width: 440px;
  padding: 0;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #fff;
  color: #171a20;
  box-shadow: 0 24px 70px rgba(16, 24, 40, .24);
}

.trusted-device-dialog::backdrop {
  background: rgba(15, 23, 42, .62);
  backdrop-filter: blur(2px);
}

.trusted-device-dialog-content {
  padding: 24px;
}

.trusted-device-dialog h2 {
  margin: 0 0 9px;
  font-size: 1.25rem;
}

.trusted-device-dialog p {
  margin: 0;
  color: #667085;
  font-size: .9rem;
  line-height: 1.5;
}

.trusted-device-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.trusted-device-actions .auth-primary-button,
.trusted-device-skip {
  width: auto;
  min-height: 42px;
  margin: 0;
  padding: 0 14px;
  border-radius: 6px;
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
}

.trusted-device-skip {
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054;
  cursor: pointer;
}

.trusted-device-skip:hover {
  background: #f8fafc;
}

html[data-theme="dark"] .trusted-device-dialog {
  background: #1a2227;
  color: #e7edf0;
  border-color: #39454c;
}

html[data-theme="dark"] .trusted-device-dialog p {
  color: #a4b0b7;
}

html[data-theme="dark"] .trusted-device-skip {
  background: #202a30;
  color: #e7edf0;
  border-color: #46545c;
}

@media (max-width: 420px) {
  .trusted-device-dialog-content {
    padding: 20px 16px;
  }

  .trusted-device-actions {
    flex-direction: column-reverse;
  }

  .trusted-device-actions .auth-primary-button,
  .trusted-device-skip {
    width: 100%;
  }
}

#error.auth-error:empty {
  display: none;
}

.auth-page .auth-visual {
  position: relative;
  display: block;
  min-width: 0;
  min-height: min(740px, calc(100svh - 64px));
  overflow: hidden;
  border: 0;
  background: #e9e3da;
}

.auth-page .auth-visual > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

@media (min-width: 1100px) {
  .auth-page.register-page .auth-panel {
    padding: 32px 48px 28px;
  }

  .auth-page.register-page .auth-wordmark {
    margin-bottom: 22px;
  }

  .auth-page.register-page .auth-intro {
    margin-bottom: 16px;
  }

  .auth-page.register-page .auth-intro h1 {
    font-size: clamp(2.1rem, 2.8vw, 2.65rem);
  }

  .auth-page.register-page .auth-form {
    gap: 9px;
  }

  .auth-page.register-page .auth-field {
    gap: 4px;
  }

  .auth-page.register-page .auth-field > input,
  .auth-page.register-page .auth-field .password-field > input {
    height: 44px;
  }

  .auth-page.register-page .auth-primary-button {
    min-height: 46px;
  }
}

@media (max-width: 900px) {
  body.auth-page.center {
    padding: 22px;
  }

  .auth-page .auth-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: calc(100vw - 44px) !important;
    min-height: min(740px, calc(100svh - 44px));
  }

  .auth-page .auth-panel {
    padding: 38px;
  }

  .auth-page .auth-intro h1 {
    font-size: clamp(2rem, 4vw, 2.55rem);
  }

  .auth-page .auth-visual > img {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  body.auth-page.center {
    min-height: 100svh;
    align-items: start;
    padding: 0;
    background: #fff;
  }

  .auth-page .auth-shell {
    display: block;
    width: 100% !important;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-page .auth-shell.login-layout {
    width: 100% !important;
  }

  .auth-page .auth-panel {
    min-height: 100svh;
    justify-content: flex-start;
    padding: clamp(30px, 8vw, 48px) clamp(22px, 7vw, 38px);
  }

  .auth-page .auth-wordmark {
    margin-bottom: clamp(48px, 10vh, 76px);
  }

  .auth-page .auth-intro {
    margin-bottom: 30px;
  }

  .auth-page .auth-intro h1 {
    max-width: 470px;
    font-size: clamp(2.35rem, 9vw, 3.15rem);
  }

  .auth-page .auth-subtitle {
    font-size: .92rem;
  }

  .auth-page .auth-visual {
    display: none;
  }

  .auth-page.register-page .auth-panel {
    justify-content: flex-start;
    padding-top: 32px;
    padding-bottom: 34px;
  }

  .auth-page.register-page .auth-wordmark {
    margin-bottom: 42px;
  }

  .auth-page.register-page .auth-intro {
    margin-bottom: 24px;
  }

  .auth-page.register-page .auth-intro h1 {
    font-size: clamp(2.1rem, 8vw, 2.75rem);
  }
}

@media (max-width: 420px) {
  .auth-page .auth-panel {
    padding-right: 22px;
    padding-left: 22px;
  }

  .auth-page .auth-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .auth-page .auth-login-footer {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

@media (min-width: 761px) and (max-height: 780px) {
  body.editorial-ui.auth-page .auth-panel {
    justify-content: flex-start;
    padding-block: 24px;
  }
  body.editorial-ui.auth-page .auth-panel .auth-wordmark { margin-bottom: 20px; }
  body.editorial-ui.auth-page .auth-intro { margin-bottom: 14px; }
  body.editorial-ui.auth-page .auth-form { gap: 12px; }
  body.editorial-ui.auth-page .auth-divider { margin-block: 10px; }
  body.editorial-ui.auth-page .auth-login-footer { margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page *,
  .auth-page *::before,
  .auth-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Editorial authentication: image and form are full-page columns, not floating cards. */
body.editorial-ui.auth-page.center { display: block; padding: 0; background: var(--bg); color: var(--text); }
body.editorial-ui.auth-page .auth-shell,body.editorial-ui.auth-page .auth-shell.login-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); width: 100% !important; max-width: none; min-height: 100svh; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
body.editorial-ui.auth-page .auth-panel { position: relative; padding: 56px clamp(32px,5vw,88px); min-height: 100svh; justify-content: center; align-items: center; border-left: 1px solid var(--depth-line, var(--line)); background: linear-gradient(135deg, rgb(255 255 255 / 38%), transparent 62%), var(--bg); box-shadow: -12px 0 36px -32px rgb(37 31 23 / 24%); }
body.editorial-ui.auth-page .auth-panel > * { width: min(100%,440px); }
body.editorial-ui.auth-page .auth-panel .auth-wordmark { width: 80px; align-self: auto; margin: 0 0 44px; }
body.editorial-ui.auth-page .auth-wordmark img { width: 80px; border-radius: 0; }
body.editorial-ui.auth-page .auth-kicker { color: var(--lux-orange-strong); font-size: .6rem; letter-spacing: .15em; font-weight: 600; }
body.editorial-ui.auth-page .auth-intro h1 { color: var(--text); font: 600 clamp(2rem,3vw,3rem)/1.12 var(--font-sans); letter-spacing: -.055em; }
body.editorial-ui.auth-page .auth-subtitle { color: var(--muted); font-size: .83rem; line-height: 1.85; }
body.editorial-ui.auth-page .auth-form { gap: 20px; }
body.editorial-ui.auth-page .auth-field > span:first-child { color: var(--text); font-size: .72rem; font-weight: 500; }
body.editorial-ui.auth-page .auth-field input { min-height: 48px; border-radius: 5px; background: var(--surface-card); border-color: var(--lux-line-strong); box-shadow: 0 1px 2px rgb(37 31 23 / 4%); transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
body.editorial-ui.auth-page .password-toggle { min-width: 44px; min-height: 44px; border-radius: 4px; }
body.editorial-ui.auth-page :is(.auth-primary-button,.auth-google-button) { min-height: 48px; border-radius: 4px; box-shadow: 0 2px 4px rgb(37 31 23 / 4%); }
body.editorial-ui.auth-page .auth-google-button { background: var(--depth-surface, var(--surface-card)); border-color: var(--lux-line-strong); color: var(--text); }
body.editorial-ui.auth-page .auth-visual { position: relative; display: block; order: 0; min-height: 100svh; height: 100%; border: 0; border-radius: 0; overflow: hidden; isolation: isolate; background: #e8e2d8 !important; }
body.editorial-ui.auth-page .auth-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; animation: editorial-auth-drift 24s ease-in-out infinite alternate; }
body.editorial-ui.auth-page .auth-visual::before { box-shadow: 0 2px 8px rgb(37 31 23 / 6%); content: 'JAMS / MADE PERSONAL'; top: 32px; left: 32px; border: 0; border-radius: 0; background: #f8f7f4; color: #242424; font-size: .58rem; font-weight: 600; }
body.editorial-ui.auth-page .auth-visual::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent,rgb(25 26 22 / 90%)); pointer-events: none; }
.auth-editorial-copy { position: absolute; z-index: 1; inset: auto 40px 44px; color: #fffaf2; }
.auth-editorial-copy > span { font-size: .6rem; letter-spacing: .2em; }
body.editorial-ui.auth-page .auth-editorial-copy > p { color: #fffaf2; margin: 18px 0; font: 600 clamp(2.3rem,4vw,4.5rem)/1.02 var(--font-sans); letter-spacing: -.055em; }
body.editorial-ui.auth-page .auth-editorial-copy em { color: #e5ad83; font-style: normal; font-weight: 400; }
.auth-editorial-copy small { color: #d0d1c4; font-size: .72rem; }
body.editorial-ui.auth-page .auth-footer { flex-wrap: wrap; color: var(--muted); font-size: .72rem; line-height: 1.8; }
body.editorial-ui.auth-page .auth-field input:focus { border-color: var(--lux-orange-strong); box-shadow: 0 0 0 3px rgb(177 107 67 / 11%), 0 1px 2px rgb(37 31 23 / 3%); }
body.editorial-ui.auth-page .auth-google-button:hover { background: var(--soft); box-shadow: var(--depth-soft, 0 2px 6px rgb(37 31 23 / 7%)); }
body.editorial-ui.auth-page .auth-primary-button:hover { box-shadow: 0 4px 12px -8px rgb(102 45 20 / 35%); }
@keyframes editorial-auth-drift { from { transform: scale(1); } to { transform: scale(1.04); } }
@media(max-width:760px) {
 body.editorial-ui.auth-page .auth-shell,body.editorial-ui.auth-page .auth-shell.login-layout { grid-template-columns: minmax(0,1fr); }
 body.editorial-ui.auth-page .auth-visual { display: none; }
 body.editorial-ui.auth-page .auth-panel { padding: 36px 24px; border-left: 0; box-shadow: none; }
 body.editorial-ui.auth-page .auth-intro h1 { font-size: clamp(2rem,7vw,2.7rem); }
}
@media(prefers-reduced-motion:reduce) { body.editorial-ui.auth-page .auth-visual > img { animation: none; } }

/* Keep the sign-in actions stationary on hover, focus, and press. */
body.auth-page.login-page :is(.auth-primary-button, .auth-google-button) {
  transform: none !important;
  translate: none !important;
  rotate: none !important;
  scale: none !important;
  transition-property: color, background-color, border-color, box-shadow, opacity !important;
}

body.auth-page.login-page :is(.auth-primary-button, .auth-google-button):is(:hover, :active, :focus, :focus-visible) {
  transform: none !important;
  translate: none !important;
  rotate: none !important;
  scale: none !important;
  animation: none !important;
}
