.auth-section {
  padding-block: clamp(16px, 4vw, 52px) clamp(28px, 6vw, 70px);
}

.auth-layout.auth-entrypoints-layout {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: stretch;
  gap: 0;
  max-width: 1040px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 0;
  background: #fffdf8;
}

.auth-entrypoints-layout .auth-art {
  grid-column: 1;
  grid-row: 1;
  justify-content: center;
  gap: 18px;
  width: auto;
  height: auto;
  margin: 0;
  padding: clamp(20px, 4vw, 42px);
  border-radius: 0;
  background: #eaf2e8;
  color: var(--ink);
  font: inherit;
  text-align: center;
}

.auth-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.auth-art figcaption {
  max-width: 32ch;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

.auth-entrypoints-layout .auth-form {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding: clamp(20px, 4vw, 44px);
}

.auth-card {
  max-width: 560px;
  margin-inline: auto;
  padding: clamp(18px, 5vw, 40px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fffdf8;
}

.auth-section h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 18px;
}

.auth-section .auth-passport-start h1 {
  max-width: 19ch;
  margin-bottom: 12px;
}

.auth-section .auth-passport-start {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.auth-passport-start .button.full {
  padding-inline: 10px;
}

.auth-form > h2 {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  line-height: 1.35;
}

.auth-card > p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-section .field {
  margin-bottom: 12px;
}

.auth-section .field label {
  margin-bottom: 4px;
  font-size: .875rem;
  line-height: 1.35;
}

.auth-section .field input:not([type="checkbox"]) {
  min-height: 46px;
  font-size: 1rem;
}

.auth-section .field .help {
  margin-top: 6px;
  font-size: .8125rem;
  line-height: 1.5;
}

.auth-section .button.full {
  min-height: 46px;
  font-size: .9375rem;
  text-align: center;
}

.auth-section a:not(.button) {
  color: var(--purple-dark);
  text-underline-offset: 3px;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 18px;
  margin-top: 4px;
  font-size: .875rem;
}

.auth-links > a,
.auth-privacy-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
}

.auth-privacy-link {
  margin-top: 6px;
  font-size: .8125rem;
}

.auth-extra {
  margin: 0 0 12px;
  border-block: 1px solid var(--line);
}

.auth-extra > summary {
  display: list-item;
  min-height: 44px;
  padding-block: 11px;
  color: var(--purple-dark);
  font-size: .875rem;
  cursor: pointer;
}

.auth-extra .field-check label,
.auth-consents .field-check label {
  min-height: 44px;
  align-items: flex-start;
}

.auth-extra .field-check input,
.auth-consents .field-check input {
  flex-shrink: 0;
  margin: 2px 0 0;
  accent-color: var(--purple-dark);
}

.auth-consents .field-check {
  margin-bottom: 0;
}

.auth-document-link {
  display: block;
  width: fit-content;
  padding-block: 7px;
  margin: 0 0 10px 26px;
  font-size: .8125rem;
  text-decoration: underline;
}

.auth-password-control {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.auth-password-toggle {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eef4ed;
  color: var(--purple-dark);
  font-family: inherit;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.auth-password-toggle:hover {
  background: #e0eee5;
}

.auth-password-toggle:focus-visible,
.auth-section summary:focus-visible,
.auth-section a:focus-visible {
  outline: 2px solid var(--purple-dark);
  outline-offset: 2px;
}

.auth-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.auth-form-errors .errorlist {
  margin: 0 0 12px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #faece9;
  color: #872c22;
  list-style: none;
  font-size: .875rem;
  line-height: 1.4;
}

.auth-form-errors .errorlist a {
  display: inline-block;
  padding-block: 4px;
  color: inherit;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.legal-document { max-width: 890px; padding-bottom: 80px; }
.legal-document h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.12; }
.legal-document h2 { font-size: 24px; margin-top: 34px; }
.legal-document p { font-size: 16px; line-height: 1.75; }

@media (max-width: 760px) {
  .auth-layout.auth-entrypoints-layout {
    display: block;
    max-width: 560px;
    border-radius: 18px;
  }

  .auth-entrypoints-layout .auth-art { display: none; }
}

@media (max-width: 360px) {
  .auth-entrypoints-layout .auth-form { padding: 16px 14px; }
  .auth-section h1 { margin-bottom: 14px; }
}
