.auth-page {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: block;
  align-items: initial;
  justify-content: initial;
  color: #0d0d0d;
  background: #f7f4ee;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-promo {
  height: 36px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(16, 16, 16, 0.06);
  background: #ead1c8;
  color: #151515;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.auth-promo-track {
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 28px;
  animation: authPromoMarquee 28s linear infinite;
}

.auth-promo-track span::before {
  content: "♥";
  margin-right: 18px;
  color: #c94f4b;
}

@keyframes authPromoMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.auth-topbar {
  min-height: 82px;
  padding: 0 44px;
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  align-items: center;
  gap: 18px;
  background: #fff;
  border-bottom: 1px solid rgba(16, 16, 16, 0.05);
}

.auth-brand,
.auth-nav a,
.auth-actions a,
.auth-row a,
.auth-tab,
.auth-card-footer a {
  color: inherit;
  text-decoration: none;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.auth-logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(174, 126, 52, 0.22);
  border-radius: 50%;
  background: #fff;
}

.auth-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.auth-brand strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  line-height: 1;
}

.auth-brand small {
  display: block;
  margin-top: 4px;
  color: #9a6f2d;
  font-size: 12px;
  font-weight: 800;
}

.auth-nav {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 3vw, 54px);
}

.auth-nav a {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.auth-nav a:hover {
  color: #9a6f2d;
}

.auth-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.auth-actions a {
  min-width: 44px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(16, 16, 16, 0.08);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-actions a:last-child {
  min-width: 104px;
  background: #111;
  color: #fff;
}

.auth-shell {
  width: min(100% - 40px, 620px);
  margin: clamp(28px, 5vw, 58px) auto 54px;
}

.auth-card {
  width: 100%;
  max-width: none;
  padding: clamp(26px, 3.2vw, 38px) clamp(28px, 3.6vw, 42px) 34px;
  background: #fff;
  border: 1px solid #e4dfd7;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.auth-tabs {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 2px solid #9d9d9d;
}

.auth-tab {
  position: relative;
  padding: 0 0 16px;
  border: 0;
  background: transparent;
  color: #a7a7a7;
  font-size: clamp(23px, 2.2vw, 30px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

.auth-tab.is-active {
  color: #050505;
}

.auth-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: #111;
}

.auth-kicker,
.auth-copy {
  display: none;
}

.auth-form {
  width: 100%;
  margin: 0;
}

.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;
  margin-bottom: 8px;
  color: #111;
  font-size: 14px;
  font-weight: 700;
}

.auth-field input,
.auth-field textarea {
  width: 100%;
  padding: 0 14px;
  border: 1px solid #bfbfbf;
  border-radius: 0;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.auth-field input {
  height: 48px;
}

.auth-field textarea {
  min-height: 88px;
  padding-top: 12px;
  padding-bottom: 12px;
  resize: vertical;
  line-height: 1.5;
}

.auth-field input:focus,
.auth-field textarea:focus {
  border-color: #111;
  box-shadow: inset 0 0 0 1px #111;
}

.auth-password-wrap {
  display: grid;
  grid-template-columns: 1fr 48px;
}

.auth-password-wrap input {
  border-right: 0;
}

.auth-password-toggle {
  display: grid;
  place-items: center;
  border: 1px solid #bfbfbf;
  background: #f9f9f9;
  color: #111;
  cursor: pointer;
}

.auth-password-toggle:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

.auth-row {
  margin: 0 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #111;
  font-size: 13px;
  font-weight: 700;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.auth-check input {
  width: 16px;
  height: 16px;
  accent-color: #111;
}

.auth-row a {
  border-bottom: 1px solid currentColor;
}

.auth-message {
  min-height: 18px;
  margin: -22px 0 16px;
  color: #b42318;
  font-size: 12px;
  font-weight: 800;
}

.auth-message.is-success {
  color: #0f6b4c;
}

.auth-submit {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #000;
  border-radius: 0;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.auth-submit:hover {
  background: #fff;
  color: #000;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.auth-card-footer {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
  color: #666;
  font-size: 13px;
  font-weight: 700;
}

.auth-card-footer a {
  color: #111;
  border-bottom: 1px solid currentColor;
}

.auth-shell-register {
  width: min(100% - 40px, 760px);
  margin-top: clamp(24px, 4vw, 44px);
}

.auth-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-strength-panel {
  margin: -2px 0 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 8px 20px;
}

.auth-strength-panel span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8a847a;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  transition: color 0.16s ease;
}

.auth-strength-panel span::before {
  content: "○";
  width: 12px;
  display: inline-block;
  color: #aaa39a;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.auth-strength-panel span.is-valid {
  color: #655331;
  font-weight: 600;
}

.auth-strength-panel span.is-valid::before {
  content: "✓";
  color: #a67b35;
  font-size: 12px;
  font-weight: 700;
}

.auth-register-message {
  margin-top: -20px;
}

.auth-register-agreements {
  display: grid;
  gap: 9px;
  margin: 0 0 24px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(64, 54, 43, .12);
}

.auth-register-agreements[hidden] { display: none; }

.auth-register-agreements .auth-consent-row {
  font-size: 13px;
  font-weight: 500;
  color: #625d55;
}

.auth-register-agreements [data-document-label] {
  color: #39342e;
  font-weight: 600;
}

@media (max-width: 1040px) {
  .auth-topbar {
    padding: 0 28px;
    grid-template-columns: 1fr auto;
  }

  .auth-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .auth-promo {
    height: 30px;
    font-size: 11px;
  }

  .auth-topbar {
    min-height: 64px;
    padding: 0 12px;
    grid-template-columns: 1fr auto;
  }

  .auth-brand {
    gap: 9px;
  }

  .auth-brand strong {
    font-size: 20px;
  }

  .auth-brand small {
    font-size: 11px;
  }

  .auth-logo {
    width: 40px;
    height: 40px;
  }

  .auth-logo img {
    width: 32px;
    height: 32px;
  }

  .auth-actions a:first-child {
    display: none;
  }

  .auth-actions a:last-child {
    min-width: 80px;
    height: 38px;
  }

  .auth-shell {
    width: min(100% - 20px, 420px);
    margin-top: 16px;
    margin-bottom: 30px;
  }

  .auth-card {
    padding: 20px 14px 22px;
  }

  .auth-tabs {
    margin-bottom: 18px;
  }

  .auth-tab {
    padding-bottom: 10px;
    font-size: 20px;
  }

  .auth-field {
    margin-bottom: 12px;
  }

  .auth-field label {
    margin-bottom: 6px;
    font-size: 13px;
  }

  .auth-field input {
    height: 40px;
  }

  .auth-field textarea {
    min-height: 76px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .auth-password-wrap {
    grid-template-columns: 1fr 40px;
  }

  .auth-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .auth-strength-panel {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-bottom: 20px;
  }

  .auth-strength-panel span {
    font-size: 12px;
  }

  .auth-row {
    margin-bottom: 22px;
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-message {
    margin-top: -14px;
  }

  .auth-submit {
    min-height: 46px;
  }
}


/* Nezihhan brand logo refresh */
.auth-logo {
  width: 82px;
  height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.auth-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 640px) {
  .auth-logo {
    width: 62px;
    height: 34px;
  }
}


/* Nezihhan refined mark logo */
.logo,
.auth-logo,
.collection-page .logo,
.km-product-page .brand .logo,
body.checkout-page-mode .checkout-header .logo {
  width: 54px !important;
  height: 54px !important;
  flex: 0 0 54px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.logo img,
.auth-logo img,
.collection-page .logo img,
.km-product-page .brand .logo img,
body.checkout-page-mode .checkout-header .logo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 0 !important;
}


/* Nezihhan readable mark polish */
.site-header .brand .logo,
.collection-page .brand .logo,
.km-product-page .brand .logo,
.auth-brand .auth-logo,
body.checkout-page-mode .checkout-header .logo {
  overflow: visible !important;
}

.site-header .brand .logo img,
.collection-page .brand .logo img,
.km-product-page .brand .logo img,
.auth-brand .auth-logo img,
body.checkout-page-mode .checkout-header .logo img {
  transform: scale(1.22) !important;
  transform-origin: center !important;
}

@media (max-width: 760px) {
  .site-header .brand .logo {
    width: 46px !important;
    height: 42px !important;
    flex: 0 0 46px !important;
  }

  .site-header .brand .logo img {
    transform: scale(1.18) !important;
  }
}

/* Nezihhan approved brand mark */
.site-header .brand .logo,
.collection-page .brand .logo,
.km-product-page .brand .logo,
.auth-brand .auth-logo,
body.checkout-page-mode .checkout-header .logo,
.logo,
.logo.small {
  width: 62px !important;
  height: 62px !important;
  flex: 0 0 62px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.site-header .brand .logo img,
.collection-page .brand .logo img,
.km-product-page .brand .logo img,
.auth-brand .auth-logo img,
body.checkout-page-mode .checkout-header .logo img,
.logo img,
.logo.small img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  transform: none !important;
}

@media (max-width: 760px) {
  .site-header .brand .logo,
  .collection-page .brand .logo,
  .km-product-page .brand .logo,
  .auth-brand .auth-logo,
  body.checkout-page-mode .checkout-header .logo,
  .logo,
  .logo.small {
    width: 48px !important;
    height: 48px !important;
    flex-basis: 48px !important;
  }
}

/* Nezihhan navigation sticky auth override */
.auth-topbar {
  position: sticky !important;
  top: 26px !important;
  z-index: 120 !important;
  width: min(1240px, calc(100% - 40px)) !important;
  margin: 0 auto !important;
  min-height: 74px !important;
  padding: 10px 18px !important;
  border-radius: 30px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(200, 164, 93, 0.18) !important;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.13) !important;
  backdrop-filter: blur(16px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.08) !important;
  transition: top 180ms ease, min-height 180ms ease, padding 180ms ease, border-radius 180ms ease, box-shadow 180ms ease;
}

.auth-topbar.is-scrolled {
  top: 0 !important;
  min-height: 62px !important;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
  border-radius: 0 0 24px 24px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1) !important;
}

@media (max-width: 760px) {
  .auth-topbar {
    top: 10px !important;
    width: min(100%, calc(100vw - 20px)) !important;
    max-width: calc(100vw - 20px) !important;
    padding: 9px 10px !important;
    border-radius: 22px !important;
    overflow: hidden !important;
  }

  .auth-topbar.is-scrolled {
    top: 0 !important;
    padding-top: 7px !important;
    padding-bottom: 7px !important;
  }
}

/* Inner-page compact auth header */
.auth-page .auth-promo{display:none!important}.auth-page .auth-topbar{position:sticky!important;top:0!important;left:0!important;right:0!important;width:100%!important;max-width:none!important;margin:0!important;border-radius:0!important;z-index:2000!important}.auth-page .auth-topbar-inner{width:100%!important;max-width:none!important;padding:7px clamp(12px,3vw,42px)!important}

/* Guest checkout is shown only on the safe checkout return flow. */
.auth-page.is-checkout-entry .auth-shell {
  width: min(100% - 56px, 1400px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(24px, 2vw, 30px);
}

.auth-page.is-checkout-entry .auth-card {
  padding: clamp(30px, 3vw, 40px);
  border-color: rgba(64, 54, 43, .10);
  background: rgba(255, 255, 255, .86);
  box-shadow: none;
}

.auth-page.is-checkout-entry .auth-tabs {
  margin-bottom: 28px;
  border-bottom-color: #aaa39a;
}

.auth-page.is-checkout-entry .auth-tab {
  padding-bottom: 13px;
  font-size: clamp(19px, 2vw, 26px);
}

.auth-page.is-checkout-entry .auth-tab.is-active::after { height: 2px; }

.auth-guest-panel {
  min-height: 420px;
  padding: clamp(30px, 3vw, 40px);
  display: grid;
  align-content: start;
  gap: 18px;
  border: 1px solid rgba(64, 54, 43, .08);
  background: rgba(255, 255, 255, .80);
  color: #15120f;
  box-shadow: none;
}

.auth-guest-panel[hidden] { display: none; }

.auth-guest-panel h2 {
  max-width: none;
  margin: 0;
  font-family: inherit;
  font-size: clamp(17px, 1.2vw, 18px);
  font-weight: 650;
  line-height: 1.35;
}

.auth-guest-panel > p:not(.auth-privacy-note) {
  margin: 0;
  color: #625b52;
  font-size: 14px;
  line-height: 1.55;
}

.auth-guest-consents {
  display: grid;
  gap: 9px;
  padding: 0;
  border: 0;
}

.auth-guest-consents--marketing {
  margin-top: 2px;
}

.auth-consent-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: #81796f;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
}

.auth-consent-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #a84345;
}

.auth-consent-row--optional {
  color: #7b746b;
  font-weight: 400;
}

.auth-privacy-note {
  margin: 0 0 2px;
  color: #857d73;
  font-size: 12px;
  line-height: 1.45;
}

.auth-guest-button {
  min-height: 58px;
  margin-top: auto;
  padding: 0 18px;
  border: 1px solid #b24749;
  border-radius: 0;
  background: #b24749;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.auth-guest-button:hover { background: #9d3d40; border-color: #9d3d40; }

.auth-guest-button:focus-visible {
  background: #9d3d40;
  border-color: #9d3d40;
  outline: 3px solid rgba(178, 71, 73, .24);
  outline-offset: 3px;
}

.auth-guest-button:disabled {
  border-color: #dac9c5;
  background: #dac9c5;
  color: #846f6d;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .auth-page.is-checkout-entry .auth-shell {
    width: min(100% - 24px, 520px);
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .auth-page.is-checkout-entry .auth-card,
  .auth-guest-panel { padding: 26px 20px; }

  .auth-guest-panel { min-height: 0; gap: 16px; }
  .auth-guest-button { margin-top: 10px; }
}
