.auth {
  min-height: 100vh; display: grid; place-items: center;
  padding: 32px 20px; background: var(--p-bg);
}
.auth__card {
  width: min(420px, 100%); padding: 32px;
  background: var(--p-surface); border: 1px solid var(--p-line);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
}
.auth__brand {
  display: inline-flex; align-items: center; min-height: 28px;
  color: var(--p-brand-ink); font-size: 13px; font-weight: 700;
  letter-spacing: 0.3px;
}
.auth__title { margin: 18px 0 8px; font-size: 24px; line-height: 1.25; }
.auth__how { margin: 0 0 24px; color: var(--p-ink-2); font-size: 13px; line-height: 1.6; }
.auth__form { display: grid; }
.auth__label { margin-bottom: 7px; font-size: 12px; font-weight: 600; }
.auth__input {
  width: 100%; min-height: 46px; padding: 10px 12px;
  background: var(--p-surface-2); border: 1px solid var(--p-line-2);
  border-radius: var(--radius-md); font-size: 14px;
}
.auth__phone-control {
  display: flex; align-items: stretch; gap: 10px;
}
.auth__country, .auth__phone-control .auth__phone {
  min-width: 0; min-height: 46px; background: var(--p-surface-2);
  border: 1px solid var(--p-line-2); border-radius: var(--radius-md);
  color: var(--p-ink); font: inherit;
}
.auth__country {
  flex: none; width: 132px; padding-block: 10px;
  padding-inline: 12px 36px; appearance: none; -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 19px) calc(50% - 1px),
    calc(100% - 14px) calc(50% - 1px);
  background-size: 5px 5px; background-repeat: no-repeat;
  font-size: 14px; cursor: pointer;
}
[dir='rtl'] .auth__country {
  background-position: 19px calc(50% - 1px), 14px calc(50% - 1px);
}
.auth__phone-control .auth__phone { flex: 1; padding-inline: 12px; }
.auth__country:disabled { color: var(--p-ink-3); cursor: not-allowed; }
.auth__input + .auth__label, .auth__note + .auth__label { margin-top: 16px; }
.auth__phone, .auth__otp,
.auth__otp-label, .auth__otp-note {
  scroll-margin-top: 12px;
}
.auth__note { margin: 7px 0 0; color: var(--p-ink-3); font-size: 11px; line-height: 1.5; }
.auth__error { min-height: 34px; margin: 10px 0 0; color: var(--p-risk); font-size: 11.5px; line-height: 1.5; }
.auth__submit { justify-content: center; min-height: 44px; width: 100%; }
.auth__submit:disabled { background: var(--p-line-2); color: var(--p-ink-3); cursor: not-allowed; }
.auth__restart {
  width: 100%; padding: 10px 12px; border: 0; background: transparent;
  color: var(--p-brand-ink); font: inherit; font-weight: 700; cursor: pointer;
}
.auth__restart:hover { text-decoration: underline; }
.auth__restart:focus-visible { outline-color: var(--p-brand); }
.auth__security {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 22px; color: var(--p-ink-3);
}
.auth__security l-icon { flex: none; margin-top: 1px; }
.auth__security p { margin: 0; font-size: 11px; line-height: 1.55; }

@media (max-width: 520px) {
  .auth { padding: 0; place-items: stretch; }
  .auth__card { min-height: 100vh; padding: 32px 20px; border: 0; border-radius: 0; box-shadow: none; }
}
