.wm2-auth-main {
  display: flow-root;
  color: var(--wm2-ink);
  font-family: var(--wm2-font);
  font-synthesis: none;
}

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

.wm2-auth {
  width: min(calc(100% - 40px), 1460px);
  margin-inline: auto;
  padding: clamp(60px, 8vw, 132px) 0 clamp(96px, 12vw, 176px);
}

.wm2-auth__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(400px, 0.62fr);
  align-items: start;
  gap: clamp(54px, 10vw, 168px);
}

.wm2-auth__intro {
  position: sticky;
  top: calc(var(--wm2-header-primary-height) + 42px);
  padding-top: 12px;
}

.wm2-auth__eyebrow,
.wm2-auth-panel__index {
  margin: 0;
  color: var(--wm2-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.wm2-auth__intro h1 {
  max-width: 780px;
  margin: 18px 0 0;
  font-family: var(--wm2-font);
  font-size: clamp(54px, 7.3vw, 112px);
  font-weight: 400;
  letter-spacing: -0.052em;
  line-height: 0.88;
}

.wm2-auth__lead {
  max-width: 530px;
  margin: clamp(26px, 4vw, 52px) 0 0;
  color: var(--wm2-muted);
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.68;
}

.wm2-auth-panel__aside a,
.wm2-auth-form__meta a {
  position: relative;
  color: inherit;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}

.wm2-auth-panel__aside a::after,
.wm2-auth-form__meta a::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.45;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--wm2-ease);
}

.wm2-auth-panel__aside a:hover::after,
.wm2-auth-panel__aside a:focus-visible::after,
.wm2-auth-form__meta a:hover::after,
.wm2-auth-form__meta a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.wm2-auth__content {
  min-width: 0;
}

.wm2-auth-panel {
  padding: clamp(34px, 4.5vw, 62px);
  border: 1px solid var(--wm2-line);
  border-radius: var(--wm2-media-radius);
  background: var(--wm2-surface);
}

.wm2-auth-panel__heading {
  display: grid;
  margin-bottom: clamp(34px, 5vw, 58px);
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
}

.wm2-auth-panel__index {
  padding-top: 5px;
}

.wm2-auth-panel h2 {
  margin: 0;
  font-family: var(--wm2-font);
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 400;
  letter-spacing: -0.038em;
  line-height: 1;
}

.wm2-auth-panel__note,
.wm2-auth-panel__status {
  margin: -28px 0 34px 48px;
  color: var(--wm2-muted);
  font-size: 13px;
  line-height: 1.6;
}

.wm2-auth-form {
  display: grid;
  gap: 26px;
}

.wm2-auth-field {
  min-width: 0;
}

.wm2-auth-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--wm2-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.wm2-auth-field input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 13px 0 11px;
  border: 0;
  border-bottom: 1px solid #b7b2a9;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--wm2-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  appearance: none;
  -webkit-appearance: none;
}

.wm2-auth-field input:focus-visible {
  border-bottom-color: var(--wm2-ink);
  box-shadow: 0 1px 0 var(--wm2-ink);
}

.wm2-auth-field input:-webkit-autofill {
  -webkit-text-fill-color: var(--wm2-ink);
  transition: background-color 9999s ease-out;
}

.wm2-auth-form__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.wm2-auth-check {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--wm2-muted);
  cursor: pointer;
  font-size: 12px;
  gap: 10px;
}

.wm2-auth-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--wm2-ink);
}

.wm2-auth-submit {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  padding: 14px 22px;
  border: 1px solid var(--wm2-action);
  border-radius: 0;
  align-items: center;
  justify-content: center;
  background: var(--wm2-action);
  color: var(--wm2-on-action);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 220ms var(--wm2-ease), color 220ms var(--wm2-ease);
}

.wm2-auth-submit:hover,
.wm2-auth-submit:focus-visible {
  background: transparent;
  color: var(--wm2-ink);
}

.wm2-auth-submit:focus-visible {
  outline: 2px solid var(--wm2-ink);
  outline-offset: 3px;
}

.wm2-auth-submit[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.72;
}

.wm2-auth-submit--secondary {
  border-color: var(--wm2-ink);
  background: transparent;
  color: var(--wm2-ink);
}

.wm2-auth-submit--secondary:hover,
.wm2-auth-submit--secondary:focus-visible {
  background: var(--wm2-ink);
  color: var(--wm2-surface);
}

.wm2-auth-panel__alternative {
  display: grid;
  margin-top: 24px;
  gap: 18px;
}

.wm2-auth-panel__alternative > span {
  display: grid;
  color: var(--wm2-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
}

.wm2-auth-panel__alternative > span::before,
.wm2-auth-panel__alternative > span::after {
  height: 1px;
  background: var(--wm2-line);
  content: "";
}

.wm2-auth-panel__aside {
  margin: 28px 0 0;
  color: var(--wm2-muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.wm2-auth-panel__aside a,
.wm2-auth-form__meta a {
  color: var(--wm2-ink);
}

.wm2-auth-message {
  margin: -18px 0 30px;
  padding: 16px 18px;
  border-left: 2px solid currentColor;
  font-size: 12px;
  line-height: 1.55;
}

.wm2-auth-message--error {
  background: #f6eae6;
  color: #743b32;
}

.wm2-auth-message--success {
  background: #e9f0e8;
  color: #3f5b43;
}

.wm2-auth-message p {
  margin: 0;
}

.wm2-auth-message p + p {
  margin-top: 7px;
}

.wm2-auth-form__hint {
  margin: -12px 0 0;
  color: var(--wm2-muted);
  font-size: 11px;
  line-height: 1.55;
}

.wm2-auth-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wm2-auth-captcha-slot {
  min-width: 1px;
  min-height: 1px;
}

.wm2-auth-message[hidden] {
  display: none;
}

.wm2-auth-captcha {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: end;
  gap: 18px;
}

.wm2-auth-captcha > img {
  display: block;
  width: 180px;
  height: 40px;
  border: 1px solid var(--wm2-line);
}

@media (max-width: 979px) {
  .wm2-auth {
    width: min(calc(100% - 32px), 720px);
    padding: 42px 0 96px;
  }

  .wm2-auth__layout {
    display: block;
  }

  .wm2-auth__intro {
    position: static;
    padding: 0 4px 36px;
  }

  .wm2-auth__intro h1 {
    margin-top: 12px;
    font-size: clamp(42px, 12.2vw, 64px);
    line-height: 0.92;
  }

  .wm2-auth__lead {
    max-width: 560px;
    margin-top: 22px;
    font-size: 14px;
  }

  .wm2-auth-panel {
    padding: 30px 24px 34px;
  }

  .wm2-auth-panel__heading {
    margin-bottom: 34px;
  }

  .wm2-auth-panel__note,
  .wm2-auth-panel__status {
    margin: -18px 0 30px 48px;
  }
}

@media (max-width: 520px) {
  .wm2-auth {
    width: calc(100% - 24px);
  }

  .wm2-auth-panel {
    padding-inline: 20px;
  }

  .wm2-auth-panel__heading {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
  }

  .wm2-auth-panel__note,
  .wm2-auth-panel__status {
    margin-left: 38px;
  }

  .wm2-auth-form__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .wm2-auth-captcha {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wm2-auth-main *,
  .wm2-auth-main *::before,
  .wm2-auth-main *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
  }
}
