.ykmotos-auth {
  --yk-auth-ink: #141414;
  --yk-auth-muted: #63666d;
  --yk-auth-line: rgba(20, 20, 20, 0.12);
  --yk-auth-soft-line: rgba(20, 20, 20, 0.08);
  --yk-auth-panel: rgba(255, 255, 255, 0.92);
  --yk-auth-panel-strong: #ffffff;
  --yk-auth-red: #d9272f;
  --yk-auth-red-dark: #a91822;
  --yk-auth-charcoal: #1f2023;
  --yk-auth-shadow: 0 20px 50px rgba(17, 19, 24, 0.08);
  --yk-auth-ease: cubic-bezier(0.16, 1, 0.3, 1);

  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(18px, 2.6vw, 34px);
  width: min(100%, 1060px);
  margin: clamp(10px, 2vw, 22px) auto 44px;
  isolation: isolate;
}

.ykmotos-auth::before {
  content: "";
  position: absolute;
  inset: -18px -20px;
  z-index: -1;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(217, 39, 47, 0.08), rgba(31, 32, 35, 0) 34%),
    repeating-linear-gradient(
      135deg,
      rgba(20, 20, 20, 0.035) 0,
      rgba(20, 20, 20, 0.035) 1px,
      transparent 1px,
      transparent 12px
    );
  opacity: 0.7;
  pointer-events: none;
}

.ykmotos-auth *,
.ykmotos-auth *::before,
.ykmotos-auth *::after {
  box-sizing: border-box;
}

html.ykmotos-auth-modal-open {
  overflow: hidden;
}

.ykmotos-auth__panel {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid var(--yk-auth-line);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--yk-auth-panel);
  box-shadow: var(--yk-auth-shadow);
  transform: translateY(12px);
  opacity: 0;
  transition:
    transform 520ms var(--yk-auth-ease),
    opacity 520ms var(--yk-auth-ease),
    border-color 260ms var(--yk-auth-ease),
  box-shadow 260ms var(--yk-auth-ease);
}

.ykmotos-auth__notices {
  grid-column: 1 / -1;
}

.ykmotos-auth__notices:empty {
  display: none;
}

.ykmotos-auth__notices :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) {
  margin: 0 0 4px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(17, 19, 24, 0.07);
  color: var(--yk-auth-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.ykmotos-auth__notices .woocommerce-error {
  border-color: rgba(185, 28, 28, 0.22);
  background: #fff8f8;
  color: #9f1720;
}

.ykmotos-auth__notices .woocommerce-message {
  border-color: rgba(22, 101, 52, 0.2);
  background: #f6fbf7;
  color: #166534;
}

.ykmotos-auth__notices .woocommerce-info {
  background: #f7f7f8;
  color: var(--yk-auth-muted);
}

.ykmotos-auth--ready .ykmotos-auth__panel {
  transform: translateY(0);
  opacity: 1;
}

.ykmotos-auth--ready .ykmotos-auth__panel--register {
  transition-delay: 90ms;
}

.ykmotos-auth__panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--yk-auth-red), var(--yk-auth-charcoal));
  opacity: 0.95;
}

.ykmotos-auth__panel::after {
  content: "";
  position: absolute;
  top: 18px;
  right: -58px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(217, 39, 47, 0.12);
  transform: rotate(18deg);
  pointer-events: none;
}

.ykmotos-auth__panel:hover,
.ykmotos-auth__panel:focus-within {
  border-color: rgba(20, 20, 20, 0.22);
  box-shadow: 0 24px 62px rgba(17, 19, 24, 0.11);
}

.ykmotos-auth__header {
  position: relative;
  margin: 0 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--yk-auth-soft-line);
}

.ykmotos-auth__header h2 {
  margin: 0 0 7px;
  color: var(--yk-auth-ink);
  font-size: clamp(25px, 2.45vw, 32px);
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
}

.ykmotos-auth__header p {
  max-width: 52ch;
  margin: 0;
  color: var(--yk-auth-muted);
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}

.ykmotos-auth__form {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.ykmotos-auth__form--hidden {
  display: none;
}

.ykmotos-auth__form:not(.ykmotos-auth__form--hidden) {
  animation: ykmotos-auth-rise 360ms var(--yk-auth-ease) both;
}

.ykmotos-auth__password-login {
  margin-top: 18px;
  padding: 18px 0 0;
  border-top: 1px solid var(--yk-auth-soft-line);
}

.ykmotos-auth label {
  margin: 0;
  color: var(--yk-auth-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.ykmotos-auth input[type="text"],
.ykmotos-auth input[type="email"],
.ykmotos-auth input[type="password"] {
  width: 100%;
  min-height: 44px;
  margin: 0;
  border: 1px solid rgba(20, 20, 20, 0.14);
  border-radius: 4px;
  background: #fff;
  color: var(--yk-auth-ink);
  font-size: 15px;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(20, 20, 20, 0.03);
  transition:
    border-color 220ms var(--yk-auth-ease),
    box-shadow 220ms var(--yk-auth-ease),
    background-color 220ms var(--yk-auth-ease);
}

.ykmotos-auth input[type="text"]:hover,
.ykmotos-auth input[type="email"]:hover,
.ykmotos-auth input[type="password"]:hover {
  border-color: rgba(20, 20, 20, 0.28);
}

.ykmotos-auth input[type="text"]:focus,
.ykmotos-auth input[type="email"]:focus,
.ykmotos-auth input[type="password"]:focus {
  outline: none;
  border-color: rgba(217, 39, 47, 0.68);
  box-shadow: 0 0 0 3px rgba(217, 39, 47, 0.11);
}

.ykmotos-auth__field-active input {
  background: linear-gradient(180deg, #fff, #fff8f8);
}

.ykmotos-auth__password-field {
  position: relative;
}

.ykmotos-auth__password-field input {
  padding-right: 44px;
}

.ykmotos-auth .ykmotos-auth__password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: unset !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0;
  background: none !important;
  box-shadow: none !important;
  color: var(--color-gray-600, rgba(20, 20, 20, 0.46));
  cursor: pointer;
  transform: none !important;
  transition: color 0.25s ease;
  line-height: 1;
  appearance: none;
}

.ykmotos-auth .ykmotos-auth__password-toggle:hover,
.ykmotos-auth .ykmotos-auth__password-toggle.is-active {
  background: none !important;
  color: var(--color-gray-400, var(--yk-auth-ink));
}

.ykmotos-auth__password-toggle svg {
  display: none;
}

.ykmotos-auth__password-toggle::before {
  font-family: "woodmart-font";
  content: "\f11a";
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.ykmotos-auth__password-toggle.is-active::before {
  content: "\f11b";
}

.ykmotos-auth__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: stretch;
}

.ykmotos-auth__code-entry {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 42px));
  gap: 8px;
  width: max-content;
  max-width: 100%;
  cursor: text;
}

.ykmotos-auth__code-input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  caret-color: transparent;
  color: transparent !important;
  opacity: 0.02;
}

.ykmotos-auth__code-box {
  position: relative;
  display: grid;
  width: 42px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(20, 20, 20, 0.16);
  border-radius: 6px;
  background: #fff;
  color: var(--yk-auth-ink);
  font-size: 21px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(20, 20, 20, 0.035);
  transition:
    transform 200ms var(--yk-auth-ease),
    border-color 200ms var(--yk-auth-ease),
    box-shadow 200ms var(--yk-auth-ease),
    background-color 200ms var(--yk-auth-ease);
}

.ykmotos-auth__code-box::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.16);
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 160ms var(--yk-auth-ease),
    transform 160ms var(--yk-auth-ease);
}

.ykmotos-auth__code-box[data-filled="true"]::after {
  opacity: 1;
  transform: scale(1);
}

.ykmotos-auth__code-box[data-value]::after {
  content: attr(data-value);
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  opacity: 1;
  transform: none;
}

.ykmotos-auth__code-entry:focus-within .ykmotos-auth__code-box {
  border-color: rgba(217, 39, 47, 0.28);
}

.ykmotos-auth__code-entry:focus-within .ykmotos-auth__code-box[data-active="true"] {
  border-color: rgba(217, 39, 47, 0.78);
  background: #fff8f8;
  box-shadow: 0 0 0 3px rgba(217, 39, 47, 0.1);
  transform: translateY(-1px);
}

.ykmotos-auth__code-entry.is-complete .ykmotos-auth__code-box {
  border-color: rgba(20, 20, 20, 0.28);
}

.ykmotos-auth button,
.ykmotos-auth .button,
.ykmotos-auth .ykmotos-auth__social-link {
  position: relative;
  overflow: hidden;
  min-height: 44px;
  border-radius: 4px;
  white-space: nowrap;
  transition:
    transform 220ms var(--yk-auth-ease),
    border-color 220ms var(--yk-auth-ease),
    background-color 220ms var(--yk-auth-ease),
    color 220ms var(--yk-auth-ease),
    box-shadow 220ms var(--yk-auth-ease);
}

.ykmotos-auth button:active,
.ykmotos-auth .button:active,
.ykmotos-auth .ykmotos-auth__social-link:active {
  transform: translateY(1px) scale(0.99);
}

.ykmotos-auth button:focus-visible,
.ykmotos-auth .button:focus-visible,
.ykmotos-auth a:focus-visible {
  outline: 2px solid rgba(217, 39, 47, 0.72);
  outline-offset: 3px;
}

.ykmotos-auth button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.ykmotos-auth .ykmotos-auth__resend {
  justify-self: start;
  min-height: 0;
  margin: -4px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--yk-auth-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.82;
}

.ykmotos-auth .ykmotos-auth__resend[hidden] {
  display: none;
}

.ykmotos-auth .ykmotos-auth__resend[disabled] {
  cursor: default;
  opacity: 0.54;
}

.ykmotos-auth .ykmotos-auth__resend:not([disabled]):hover {
  color: var(--yk-auth-red-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ykmotos-auth button[type="submit"],
.ykmotos-auth .ykmotos-auth__primary {
  border: 1px solid var(--yk-auth-charcoal);
  background: var(--yk-auth-charcoal);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ykmotos-auth button[type="submit"]:hover,
.ykmotos-auth .ykmotos-auth__primary:hover {
  border-color: var(--yk-auth-red);
  background: var(--yk-auth-red);
  color: #fff;
  box-shadow: 0 10px 22px rgba(217, 39, 47, 0.18);
}

.ykmotos-auth__social {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.ykmotos-auth .ykmotos-auth__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(20, 20, 20, 0.14);
  background: #f7f7f8;
  color: var(--yk-auth-ink);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.ykmotos-auth__social-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.65));
}

.ykmotos-auth__social-link--facebook .ykmotos-auth__social-icon {
  border-radius: 50%;
}

.ykmotos-auth .ykmotos-auth__social-link:hover,
.ykmotos-auth .ykmotos-auth__social-link:focus {
  border-color: rgba(20, 20, 20, 0.26);
  background: #fff;
  color: var(--yk-auth-ink);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(17, 19, 24, 0.07);
}

.ykmotos-auth__login-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--yk-auth-muted);
  font-size: 13px;
}

.ykmotos-auth__login-meta a {
  color: var(--yk-auth-red-dark);
  font-weight: 600;
  text-decoration: none;
}

.ykmotos-auth__login-meta a:hover {
  color: var(--yk-auth-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ykmotos-auth__remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ykmotos-auth__remember input[type="checkbox"] {
  width: 17px;
  min-height: 17px;
  accent-color: var(--yk-auth-red);
}

.ykmotos-auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
  color: var(--yk-auth-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ykmotos-auth__divider::before,
.ykmotos-auth__divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(20, 20, 20, 0.16), transparent);
}

.ykmotos-auth__message {
  min-height: 20px;
  margin: 0;
  border-radius: 4px;
  color: var(--yk-auth-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  transition:
    color 220ms var(--yk-auth-ease),
    background-color 220ms var(--yk-auth-ease),
    padding 220ms var(--yk-auth-ease);
}

.ykmotos-auth__message:not(:empty) {
  padding: 9px 11px;
}

.ykmotos-auth__message[data-type="success"] {
  background: rgba(22, 101, 52, 0.08);
  color: #166534;
}

.ykmotos-auth__message[data-type="error"] {
  background: rgba(185, 28, 28, 0.08);
  color: #a31621;
}

.ykmotos-auth__panel--register .ykmotos-auth__form {
  padding-left: 22px;
}

.ykmotos-auth__panel--register .ykmotos-auth__form::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 5px;
  width: 1px;
  background: rgba(20, 20, 20, 0.12);
}

.ykmotos-auth__panel--register .ykmotos-auth__form::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 2px solid var(--yk-auth-red);
  border-radius: 50%;
  background: var(--yk-auth-panel-strong);
}

.ykmotos-auth__ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.16;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: ykmotos-auth-ripple 520ms var(--yk-auth-ease);
}

.ykmotos-auth__turnstile-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  padding: 22px;
  place-items: center;
  background: rgba(8, 9, 11, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--yk-auth-ease);
}

.ykmotos-auth__turnstile-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ykmotos-auth__turnstile-modal[hidden] {
  display: none;
}

.ykmotos-auth__turnstile-dialog {
  position: relative;
  width: min(100%, 390px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  transform: translateY(10px) scale(0.98);
  transition: transform 180ms var(--yk-auth-ease);
}

.ykmotos-auth__turnstile-modal.is-open .ykmotos-auth__turnstile-dialog {
  transform: translateY(0) scale(1);
}

.ykmotos-auth__turnstile-dialog h3 {
  margin: 0 0 8px;
  color: var(--yk-auth-ink);
  font-size: 24px;
  line-height: 1.1;
}

.ykmotos-auth__turnstile-dialog p {
  margin: 0 0 18px;
  color: var(--yk-auth-muted);
  font-size: 14px;
  line-height: 1.5;
}

.ykmotos-auth .ykmotos-auth__turnstile-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 0;
  padding: 5px 8px;
  border: 0;
  background: transparent;
  color: var(--yk-auth-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.ykmotos-auth .ykmotos-auth__turnstile-close:hover {
  color: var(--yk-auth-red-dark);
}

.ykmotos-auth__turnstile-widget {
  min-height: 65px;
}

@keyframes ykmotos-auth-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ykmotos-auth-ripple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

@media (max-width: 1024px) {
  .ykmotos-auth {
    width: min(100%, 920px);
  }
}

@media (max-width: 768px) {
  .ykmotos-auth {
    grid-template-columns: 1fr;
    width: 100%;
    margin-bottom: 30px;
  }

  .ykmotos-auth::before {
    inset: -10px;
  }

  .ykmotos-auth__panel {
    min-height: 0;
    padding: 22px;
  }

  .ykmotos-auth__social,
  .ykmotos-auth__row {
    grid-template-columns: 1fr;
  }

  .ykmotos-auth__code-entry {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .ykmotos-auth__code-box {
    width: 100%;
    height: 43px;
  }

  .ykmotos-auth__login-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ykmotos-auth *,
  .ykmotos-auth *::before,
  .ykmotos-auth *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

.ykmotos-auth--lost-password {
  grid-template-columns: minmax(0, 640px);
  justify-content: center;
  width: min(100%, 760px);
}

.ykmotos-auth__panel--lost-password {
  min-height: auto;
}

.ykmotos-auth--lost-password .ykmotos-auth__row {
  align-items: stretch;
}

.ykmotos-auth--lost-password .ykmotos-auth__password-field + label {
  margin-top: 4px;
}

@media (max-width: 768px) {
  .ykmotos-auth--lost-password {
    width: min(100%, calc(100vw - 30px));
  }
}

.ykmotos-auth__message a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
