.auth-page--compact {
  grid-template-columns: minmax(420px, 520px) minmax(0, 1fr);
  gap: 56px;
  padding-inline: 64px;
}

.auth-page--compact .auth-visual {
  align-items: flex-end;
  gap: 16px;
  justify-content: flex-start;
  max-width: none;
  padding: 82px 44px 54px 20px;
  text-align: right;
}

.auth-visual__brand {
  align-items: center;
  display: grid;
  gap: 8px;
  justify-items: end;
  margin-block-end: 0;
  transform: none;
}

.auth-visual__brand img {
  display: block;
  height: auto;
  max-width: min(100%, 280px);
  object-fit: contain;
  width: clamp(190px, 20vw, 280px);
}

.auth-visual__brand span {
  color: #374151;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.5;
}

.auth-page--compact .auth-visual__content {
  justify-items: end;
  max-width: 600px;
  text-align: right;
  width: min(100%, 600px);
}

.auth-page--compact .auth-visual__content span {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.7;
  text-align: right;
}

.auth-page--compact .auth-visual__content h1 {
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.38;
  margin-top: 14px;
  max-width: 560px;
  text-align: right;
}

.auth-page--compact .auth-visual__content p {
  color: #374151;
  font-size: 16px;
  font-weight: 800;
  line-height: 2;
  margin-top: 14px;
  max-width: 520px;
  text-align: right;
}

.auth-page--compact .auth-panel {
  align-self: center;
  justify-self: center;
  min-height: auto;
  padding: 34px;
  width: min(100%, 470px);
}

.auth-page--compact .auth-panel__header {
  text-align: right;
}

.auth-page--compact .auth-panel__header h2 {
  font-size: 26px;
}

.auth-page--compact .auth-form {
  gap: 18px;
  margin-top: 28px;
}

.forgot-form input[type="tel"] {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  direction: ltr;
  min-height: 46px;
  padding: 0 13px;
  text-align: left;
}

.password-field {
  position: relative;
}

.password-field input[type="password"],
.password-field input[type="text"] {
  padding-inline-end: 58px;
  width: 100%;
}

.password-toggle {
  align-items: center;
  border-radius: 12px;
  display: inline-flex;
  height: 42px;
  inset-block-start: 2px;
  inset-inline-end: 4px;
  justify-content: center;
  position: absolute;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  width: 46px;
}

.password-toggle:hover {
  background: rgb(49 28 91 / 8%);
}

.password-toggle:active {
  transform: scale(0.96);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.password-character {
  display: block;
  height: 30px;
  position: relative;
  width: 30px;
}

.password-character__face {
  background:
    radial-gradient(circle at 50% 72%, #f6c08f 0 2px, transparent 2.5px),
    linear-gradient(145deg, #ffe5bf 0%, #f7bc82 100%);
  border: 1px solid rgb(49 28 91 / 16%);
  border-radius: 50%;
  box-shadow: inset 0 -2px 5px rgb(114 68 31 / 12%);
  display: block;
  height: 26px;
  inset-block-start: 2px;
  inset-inline-start: 2px;
  position: absolute;
  width: 26px;
}

.password-character__eye {
  background: #311c5b;
  border-radius: 999px;
  height: 5px;
  position: absolute;
  top: 9px;
  transition:
    height 0.2s ease,
    transform 0.2s ease;
  width: 5px;
}

.password-character__eye--right {
  right: 7px;
}

.password-character__eye--left {
  left: 7px;
}

.password-character__hand {
  background: linear-gradient(145deg, #ffe4bf 0%, #f2ad72 100%);
  border: 1px solid rgb(49 28 91 / 12%);
  border-radius: 999px;
  box-shadow: 0 1px 3px rgb(49 28 91 / 12%);
  height: 11px;
  position: absolute;
  top: 10px;
  transition:
    top 0.22s ease,
    transform 0.22s ease;
  width: 14px;
  z-index: 2;
}

.password-character__hand--right {
  right: 4px;
  transform: rotate(-18deg);
}

.password-character__hand--left {
  left: 4px;
  transform: rotate(18deg);
}

.password-toggle.is-visible .password-character__eye {
  height: 6px;
  transform: scaleY(1.1);
}

.password-toggle.is-visible .password-character__hand--right {
  top: 20px;
  transform: rotate(22deg) translate(5px, 0);
}

.password-toggle.is-visible .password-character__hand--left {
  top: 20px;
  transform: rotate(-22deg) translate(-5px, 0);
}

.forgot-step {
  display: none;
  gap: 16px;
}

.forgot-step.is-active {
  display: grid;
}

.otp-resend {
  align-items: center;
  color: var(--color-text-muted);
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
  justify-content: space-between;
  min-height: 24px;
}

.otp-resend__button {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.otp-resend__button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.back-to-login {
  color: var(--color-primary);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .auth-page--compact {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-inline: 18px;
  }

  .auth-page--compact .auth-visual {
    align-items: flex-end;
    gap: 18px;
    min-height: auto;
    padding: 14px 6px 8px;
  }

  .auth-visual__brand {
    transform: none;
  }

  .auth-visual__brand img {
    width: min(210px, 64vw);
  }

  .auth-page--compact .auth-visual__content h1 {
    font-size: 28px;
  }

  .auth-page--compact .auth-panel {
    justify-self: stretch;
    padding: 28px;
    width: 100%;
  }
}
