/* Customer authentication presentation. Native WooCommerce forms remain authoritative. */
.vk-customer-auth {
  --vk-auth-page: #f2f4f7;
  --vk-auth-surface: #ffffff;
  --vk-auth-field-bg: #fafbfc;
  --vk-auth-text: #171b24;
  --vk-auth-muted: #505a6f;
  --vk-auth-border: #d9dce5;
  --vk-auth-input-border: #8991a2;
  --vk-auth-link: #513587;
  --vk-auth-focus: #6847c4;
  --vk-auth-step-border: #969eae;
  --vk-auth-error: #a62842;
  --vk-auth-error-bg: #fdf0f2;
  --vk-auth-error-border: #e8a3b3;
  --vk-auth-success: #176448;
  --vk-auth-success-bg: #edf8f2;
  --vk-auth-gradient: linear-gradient(104deg, #292178, #893472);
  color-scheme: light;
  display: grid;
  justify-items: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 28px 14px 36px;
  background: var(--vk-auth-page);
  color: var(--vk-auth-text);
  font-family: var(--vk-font-family, Manrope, system-ui, sans-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-align: start;
}

html[data-vk-theme="dark"] .vk-customer-auth,
body[data-vk-theme="dark"] .vk-customer-auth,
.vk-customer-auth[data-vk-theme="dark"] {
  --vk-auth-page: #11151b;
  --vk-auth-surface: #1a1f27;
  --vk-auth-field-bg: #171b24;
  --vk-auth-text: #f7f7fb;
  --vk-auth-muted: #c4c8da;
  --vk-auth-border: #363e4b;
  --vk-auth-input-border: #717b91;
  --vk-auth-link: #dfc6ff;
  --vk-auth-focus: #b899ff;
  --vk-auth-step-border: #626c80;
  --vk-auth-error: #ff99af;
  --vk-auth-error-bg: #3a2331;
  --vk-auth-error-border: #8b5062;
  --vk-auth-success: #96e8c3;
  --vk-auth-success-bg: #19392d;
  color-scheme: dark;
}

.vk-customer-auth *,
.vk-customer-auth *::before,
.vk-customer-auth *::after { box-sizing: border-box; }
.vk-customer-auth [hidden],
.vk-customer-auth input[type="hidden"] { display: none !important; }
.vk-customer-auth :is(button, input, select, textarea) { font-family: inherit; }
.vk-customer-auth :is(button, input, select, textarea, a) { touch-action: manipulation; }
.vk-customer-auth :is(button, input, select, textarea, a, [tabindex]):focus-visible {
  outline: 2px solid var(--vk-auth-focus) !important;
  outline-offset: 3px;
  box-shadow: none;
}
.vk-customer-auth a {
  color: var(--vk-auth-link);
  text-underline-offset: 3px;
}
.vk-customer-auth a:hover { color: var(--vk-auth-link); text-decoration: underline; }
.vk-customer-auth svg {
  width: 16px;
  height: 16px;
  flex: none;
  vertical-align: middle;
  stroke-width: 1.7;
}

.vk-customer-auth .vk-auth-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  min-width: 0;
  margin: 0 auto;
  padding: 28px clamp(18px, 5vw, 36px) 23px;
  border: 1px solid var(--vk-auth-border);
  border-radius: 16px;
  background: var(--vk-auth-surface);
  color: var(--vk-auth-text);
  box-shadow: 0 12px 32px rgb(11 12 20 / 9%);
}
.vk-customer-auth .vk-auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  border-radius: 15px 15px 0 0;
  background: linear-gradient(90deg, #009cdb, #7047e8, #e42382);
  pointer-events: none;
}
.vk-customer-auth .vk-auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 166px);
  height: 40px;
  margin: 0 auto 20px;
  padding: 0;
}
.vk-customer-auth .vk-auth-brand img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}
.vk-customer-auth .vk-auth-brand :is(.vk-auth-logo-light, .site-logo-light) { display: block !important; }
.vk-customer-auth .vk-auth-brand :is(.vk-auth-logo-dark, .site-logo-dark) { display: none !important; }
html[data-vk-theme="dark"] .vk-customer-auth .vk-auth-brand :is(.vk-auth-logo-light, .site-logo-light),
body[data-vk-theme="dark"] .vk-customer-auth .vk-auth-brand :is(.vk-auth-logo-light, .site-logo-light),
.vk-customer-auth[data-vk-theme="dark"] .vk-auth-brand :is(.vk-auth-logo-light, .site-logo-light) { display: none !important; }
html[data-vk-theme="dark"] .vk-customer-auth .vk-auth-brand :is(.vk-auth-logo-dark, .site-logo-dark),
body[data-vk-theme="dark"] .vk-customer-auth .vk-auth-brand :is(.vk-auth-logo-dark, .site-logo-dark),
.vk-customer-auth[data-vk-theme="dark"] .vk-auth-brand :is(.vk-auth-logo-dark, .site-logo-dark) { display: block !important; }

.vk-customer-auth .vk-auth-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 23px;
  padding: 0;
  list-style: none;
}
.vk-customer-auth .vk-auth-steps::after {
  content: "";
  flex: 1 1 12px;
  order: 1;
  min-width: 12px;
  height: 1px;
  background: var(--vk-auth-border);
}
.vk-customer-auth .vk-auth-steps li {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vk-auth-muted);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.vk-customer-auth .vk-auth-steps li:last-child { order: 2; }
.vk-customer-auth .vk-auth-steps li[aria-current="step"] { color: var(--vk-auth-text); font-weight: 780; }
.vk-customer-auth .vk-auth-steps li > span:first-child {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--vk-auth-step-border);
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
}
.vk-customer-auth .vk-auth-steps li[aria-current="step"] > span:first-child {
  border-color: transparent;
  background: linear-gradient(var(--vk-auth-surface), var(--vk-auth-surface)) padding-box,
    linear-gradient(135deg, #505bde, #b44093) border-box;
}

.vk-customer-auth .vk-auth-panel { min-width: 0; margin: 0; padding: 0; }
.vk-customer-auth .vk-auth-panel :is(h1, h2) {
  margin: 0 0 20px;
  padding: 0;
  color: var(--vk-auth-text);
  font-family: inherit;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.027em;
  text-align: center;
  text-transform: none;
  overflow-wrap: anywhere;
}
.vk-customer-auth .vk-auth-intro {
  margin: -11px 0 21px;
  color: var(--vk-auth-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}
.vk-customer-auth .vk-auth-card :is(form, form.woocommerce-form),
.vk-customer-auth .vk-auth-card .vk-auth-panel form.woocommerce-form {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: var(--vk-auth-text);
  box-shadow: none;
}
.vk-customer-auth .vk-auth-card :is(.form-row, .woocommerce-form-row, .vk-auth-field) {
  display: block;
  float: none;
  clear: both;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0;
}
.vk-customer-auth .vk-auth-card label {
  display: block;
  margin: 0 0 5px;
  color: var(--vk-auth-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
}
.vk-customer-auth .vk-auth-card label .required { color: inherit; text-decoration: none; }
.vk-customer-auth .vk-auth-card label > input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) { margin-top: 5px; }
.vk-customer-auth .vk-auth-card :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="url"], input:not([type]), select, textarea) {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid var(--vk-auth-input-border);
  border-color: var(--vk-auth-input-border) !important;
  border-radius: 8px;
  background: var(--vk-auth-field-bg) !important;
  color: var(--vk-auth-text) !important;
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-align: start;
  appearance: auto;
}
.vk-customer-auth .vk-auth-card textarea { height: auto; min-height: 90px; resize: vertical; }
.vk-customer-auth .vk-auth-card input::placeholder { color: var(--vk-auth-muted); opacity: 1; }
.vk-customer-auth .vk-auth-card :is(input, select, textarea)[aria-invalid="true"],
.vk-customer-auth .vk-auth-card .woocommerce-invalid :is(input, select, textarea) { border-color: var(--vk-auth-error) !important; }
.vk-customer-auth .vk-auth-card :is(.password-input, .vk-auth-password) {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.vk-customer-auth .vk-auth-card :is(.password-input, .vk-auth-password) > input { padding-right: 48px; }
.vk-customer-auth .vk-auth-card :is(.show-password-input, .vk-auth-password-toggle) {
  position: absolute;
  inset: 1px 1px auto auto;
  transform: none;
  display: grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--vk-auth-muted);
  box-shadow: none;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}
.vk-customer-auth .vk-auth-card :is(.show-password-input, .vk-auth-password-toggle):hover { color: var(--vk-auth-text); background: transparent; }
/* WooCommerce embeds a dark fill in both native password-eye icons. */
html[data-vk-theme="dark"] .vk-customer-auth .vk-auth-card .show-password-input::before,
body[data-vk-theme="dark"] .vk-customer-auth .vk-auth-card .show-password-input::before,
.vk-customer-auth[data-vk-theme="dark"] .vk-auth-card .show-password-input::before {
  filter: invert(1);
}
.vk-customer-auth .vk-auth-form-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.vk-customer-auth .vk-auth-card :is(label.vk-auth-checkbox, .vk-auth-checkbox) {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  margin: 0;
  color: var(--vk-auth-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.vk-customer-auth .vk-auth-card .vk-auth-checkbox :is(input[type="checkbox"], input[type="radio"]) {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--vk-auth-focus);
  appearance: auto;
}
.vk-customer-auth .vk-auth-card .vk-auth-checkbox label { display: inline; margin: 0; font-size: inherit; font-weight: inherit; color: inherit; }
.vk-customer-auth .vk-auth-card .vk-auth-checkbox > :not(input) { min-width: 0; }
.vk-customer-auth .vk-auth-card .vk-auth-checkbox a { font-weight: 700; text-underline-offset: 2px; }

/* Width/height overrides are limited to the legacy theme's fixed submit buttons. */
.vk-customer-auth .vk-auth-card :is(.woocommerce-form, .vk-auth-panel) :is(button[type="submit"], input[type="submit"], .woocommerce-Button, .woocommerce-button, .vk-auth-primary),
.vk-customer-auth .vk-auth-card :is(button.vk-auth-primary, a.vk-auth-primary) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  float: none;
  width: 100% !important;
  min-width: 0;
  height: auto !important;
  min-height: 46px;
  margin: 0 !important;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-color: transparent !important;
  border-radius: 8px;
  background: var(--vk-auth-gradient) !important;
  color: #ffffff !important;
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.35;
  letter-spacing: normal;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  text-transform: none;
  white-space: normal;
  cursor: pointer;
}
.vk-customer-auth .vk-auth-card :is(.woocommerce-form, .vk-auth-panel) :is(button[type="submit"], input[type="submit"], .woocommerce-Button, .woocommerce-button, .vk-auth-primary):hover,
.vk-customer-auth .vk-auth-card :is(button.vk-auth-primary, a.vk-auth-primary):hover { background: var(--vk-auth-gradient) !important; filter: brightness(1.12); color: #ffffff !important; text-decoration: none; }
.vk-customer-auth .vk-auth-card :is(button, input)[type="submit"]:disabled { opacity: .65; cursor: default; filter: none; }

.vk-customer-auth .vk-auth-card :is(.vk-auth-text, .lost_password a, .woocommerce-LostPassword a) {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  gap: 5px;
  margin: 0;
  padding: 3px 0;
  border: 0;
  background: transparent !important;
  color: var(--vk-auth-link) !important;
  font-family: inherit;
  font-size: 12px;
  font-weight: 730;
  line-height: 1.5;
  text-align: start;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
}
.vk-customer-auth .vk-auth-card :is(.vk-auth-text, .lost_password a, .woocommerce-LostPassword a):hover { text-decoration: underline; text-underline-offset: 3px; }
.vk-customer-auth .vk-auth-card :is(.lost_password, .woocommerce-LostPassword) {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}
.vk-customer-auth .vk-auth-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 7px;
  margin-top: 18px;
  padding-top: 11px;
  border-top: 1px solid var(--vk-auth-border);
  color: var(--vk-auth-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.vk-customer-auth .vk-auth-card .vk-auth-secondary :is(a, button, button[type="submit"], .button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  min-height: 24px;
  margin: 0 !important;
  padding: 3px 0;
  border: 0;
  background: transparent !important;
  color: var(--vk-auth-link) !important;
  box-shadow: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: 730;
  line-height: 1.5;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: none;
  white-space: normal;
  cursor: pointer;
}
.vk-customer-auth .vk-auth-card .vk-auth-secondary :is(a, button, button[type="submit"], .button):hover { background: transparent !important; color: var(--vk-auth-link) !important; filter: none; }
.vk-customer-auth .vk-auth-card .vk-auth-secondary form { display: inline-flex; width: auto; gap: 0; }
.vk-customer-auth .vk-auth-code-help { margin: -5px 0 0; color: var(--vk-auth-muted); font-size: 12px; line-height: 1.5; }
.vk-customer-auth .vk-auth-code-links { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 11px; }
.vk-customer-auth .vk-auth-card input.vk-auth-otp {
  height: 50px;
  min-height: 50px;
  font: 700 24px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .24em;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.vk-customer-auth .vk-auth-card :is(.woocommerce-privacy-policy-text, .woocommerce-form-register > p:not(.form-row):not(.woocommerce-form-row)) {
  min-width: 0;
  margin: 0;
  color: var(--vk-auth-muted);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.vk-customer-auth .vk-auth-card :is(.woocommerce-error, .woocommerce-info, .woocommerce-message, .vk-auth-notice) {
  width: 100%;
  min-width: 0;
  margin: 0 0 17px;
  padding: 10px 12px;
  border: 1px solid var(--vk-auth-border);
  border-radius: 8px;
  background: var(--vk-auth-field-bg);
  color: var(--vk-auth-text);
  box-shadow: none;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.vk-customer-auth .vk-auth-card ul.woocommerce-error { padding-inline-start: 28px; }
.vk-customer-auth .vk-auth-card :is(.woocommerce-error, .vk-auth-notice--error) { border-color: var(--vk-auth-error-border); background: var(--vk-auth-error-bg); color: var(--vk-auth-error); }
.vk-customer-auth .vk-auth-card .woocommerce-message { background: var(--vk-auth-success-bg); color: var(--vk-auth-success); }
.vk-customer-auth .vk-auth-card .vk-auth-status { margin: 0; color: var(--vk-auth-muted); font-size: 12px; line-height: 1.5; }
.vk-customer-auth .vk-auth-card .vk-auth-status:empty { display: none; }

@media (max-width: 430px) {
  .vk-customer-auth { padding: 20px 14px 28px; }
  .vk-customer-auth .vk-auth-card { padding: 23px 15px 18px; }
  .vk-customer-auth .vk-auth-brand { width: min(100%, 153px); height: 37px; }
  .vk-customer-auth .vk-auth-steps { gap: 8px; }
  .vk-customer-auth .vk-auth-steps li { gap: 5px; font-size: 11px; }
}
@media (pointer: coarse) {
  .vk-customer-auth .vk-auth-card :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="url"], input:not([type])) { font-size: 16px; }
  .vk-customer-auth .vk-auth-card .vk-auth-checkbox { min-height: 44px; align-items: center; }
  .vk-customer-auth .vk-auth-card :is(.vk-auth-text, .lost_password a, .woocommerce-LostPassword a),
  .vk-customer-auth .vk-auth-card .vk-auth-secondary :is(a, button, .button) { min-height: 44px; }
  .vk-customer-auth .vk-auth-card input.vk-auth-otp { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .vk-customer-auth *,
  .vk-customer-auth *::before,
  .vk-customer-auth *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
