.auth-page {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: block;
  align-items: initial;
  justify-content: initial;
  color: #0d0d0d;
  background: #f6f6f6;
  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 rgba(16, 16, 16, 0.05);
  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: -4px 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-strength-panel span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #faf8f4;
  color: #6b665d;
  font-size: 13px;
  font-weight: 800;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.auth-strength-panel span::before {
  content: "";
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.auth-strength-panel span.is-valid {
  border-color: rgba(154, 111, 45, 0.42);
  background: #fff7e8;
  color: #8a6124;
  transform: translateY(-1px);
}

.auth-strength-panel span.is-valid::before {
  content: "✓";
  border-color: #8a6124;
  background: #8a6124;
  color: #fff;
}

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

@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 {
    gap: 6px;
    margin-bottom: 20px;
  }

  .auth-strength-panel span {
    min-height: 28px;
    padding: 0 9px;
    font-size: 11px;
  }

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

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

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


/* GoldKontur 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;
  }
}


/* GoldKontur 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;
}


/* GoldKontur 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;
  }
}

/* GoldKontur 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;
  }
}

/* GoldKontur 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}
