/* Гостевой вход. Те же токены и контролы, что кабинет ads: Golos, карточка, чёрная кнопка. */
html.cabinet-app .hz-page--auth,
html.cabinet-app .hz-page--auth h1 {
  font-family: var(--hz-font);
  letter-spacing: 0;
}

html.cabinet-app,
html.cabinet-app body.hz-page--auth {
  margin: 0;
}

html.cabinet-app body.hz-page--auth {
  box-sizing: border-box;
}

.hz-page--auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: var(--hz-bg);
  color: var(--hz-text);
}

.hz-auth {
  width: min(100%, 420px);
}

.hz-page--auth .hz-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 20px;
  text-decoration: none;
  color: inherit;
}

.hz-page--auth .hz-lockup__mark {
  display: block;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

.hz-page--auth .hz-lockup__mark path[stroke] {
  stroke-width: 1.75;
}

.hz-page--auth .hz-lockup__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hz-page--auth .hz-lockup__name {
  font-size: 20px;
  line-height: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #171717;
}

.hz-page--auth .hz-lockup__tag {
  margin-top: 1px;
  font-size: 12px;
  line-height: 15px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.62);
}

.hz-page--auth .hz-lockup:hover {
  text-decoration: none;
}

.hz-page--auth .hz-lockup:hover .hz-lockup__name {
  color: #000;
}

.hz-auth__card {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 16px;
  padding: 32px;
}

.hz-page--auth .page-title {
  margin: 0;
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: 0;
  color: #1a1a1b;
}

.hz-page--auth .page-meta {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 22px;
  color: #757575;
}

.hz-auth__error {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--hz-red-100);
  color: var(--hz-red-600);
  font-size: 14px;
  line-height: 20px;
}

.hz-auth__form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.hz-page--auth .hz-settings-field {
  display: block;
  margin: 0;
}

.hz-page--auth .hz-settings-label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #757575;
}

.hz-auth__extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 10px;
}

.hz-auth__remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: #1a1a1b;
  cursor: pointer;
}

.hz-auth__remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #292929;
  cursor: pointer;
}

.hz-auth__forgot {
  font-size: 14px;
  line-height: 20px;
  color: #1a1a1b;
  text-decoration: none;
}

.hz-auth__forgot:hover {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hz-auth__forgot:focus-visible {
  outline: 2px solid #292929;
  outline-offset: 2px;
  border-radius: 4px;
}

.hz-auth__control {
  position: relative;
  display: block;
}

.hz-page--auth .hz-auth__field-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  color: #757575;
  pointer-events: none;
}

.hz-page--auth .hz-auth__control .hz-settings-input {
  padding-left: 40px;
}

.hz-page--auth .hz-auth__control--secret .hz-settings-input {
  padding-right: 40px;
}

.hz-auth__eye {
  position: absolute;
  right: 4px;
  top: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #757575;
  cursor: pointer;
}

.hz-auth__eye:hover {
  color: #1a1a1b;
}

.hz-auth__eye:focus-visible {
  outline: 2px solid #292929;
  outline-offset: 1px;
}

.hz-auth__eye .hz-auth__eye-off {
  display: none;
}

.hz-auth__eye.is-open .hz-auth__eye-on {
  display: none;
}

.hz-auth__eye.is-open .hz-auth__eye-off {
  display: block;
}

.hz-page--auth .hz-settings-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  background: #fff;
  color: #1a1a1b;
  font: inherit;
  font-size: 16px;
  line-height: 22px;
}

.hz-page--auth .hz-settings-input:focus {
  outline: 2px solid color-mix(in srgb, var(--hz-brand-500) 35%, transparent);
  outline-offset: 1px;
  border-color: #bdbdbd;
}

.hz-page--auth .hz-btn {
  width: 100%;
  height: 40px;
  min-height: 40px;
  margin-top: 4px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: none;
}

.hz-page--auth .hz-btn--brand {
  background: #292929;
  color: #fff;
}

.hz-page--auth .hz-btn--brand:hover,
.hz-page--auth .hz-btn--brand:active {
  background: #161616;
  color: #fff;
}

.hz-page--auth .hz-btn:focus-visible {
  outline: 2px solid #292929;
  outline-offset: 2px;
}

.hz-auth__switch {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  color: #757575;
}

.hz-auth__switch a {
  color: #1a1a1b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hz-auth__switch a:hover {
  color: #000;
}

.hz-auth__field-error {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--hz-red-600);
}

.hz-page--auth .hz-settings-input.is-invalid {
  border-color: var(--hz-red-600);
}

.hz-page--auth .hz-settings-input--code {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hz-auth__agreements {
  display: grid;
  gap: 10px;
}

.hz-auth__agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: #1a1a1b;
  cursor: pointer;
}

.hz-auth__agree input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: #292929;
  flex: 0 0 16px;
  cursor: pointer;
}

.hz-auth__agree a {
  color: #1a1a1b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hz-auth__agree a:hover {
  color: #000;
}

.hz-auth__pass {
  position: relative;
}

.hz-auth__pass-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.hz-auth__pass-head .hz-settings-label {
  margin: 0;
}

.hz-auth__generate {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--hz-brand-500);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}

.hz-auth__generate:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hz-auth__generate:focus-visible {
  outline: 2px solid var(--hz-brand-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.hz-auth__rules {
  position: absolute;
  z-index: 5;
  top: 28px;
  right: calc(100% + 14px);
  width: 292px;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(20, 20, 20, 0.12);
}

.hz-auth__rules[hidden] {
  display: none;
}

.hz-auth__rules::before {
  content: "";
  position: absolute;
  top: 22px;
  right: -6px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-top: 1px solid #e6e6e6;
  border-right: 1px solid #e6e6e6;
  transform: rotate(45deg);
}

.hz-auth__rules ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.hz-auth__rules li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #8a8a8a;
  font-size: 13px;
  line-height: 18px;
}

.hz-auth__rules li.is-met {
  color: #1a1a1b;
}

.hz-auth__rules-mark {
  position: relative;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex: 0 0 16px;
  box-sizing: border-box;
  border: 1.5px solid #d0d0d0;
  border-radius: 50%;
}

.hz-auth__rules li.is-met .hz-auth__rules-mark {
  border-color: #1f9d55;
  background: #1f9d55;
}

.hz-auth__rules li.is-met .hz-auth__rules-mark::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.hz-auth__rules-set {
  color: #5c5c5c;
}

.hz-auth__rules li.is-met .hz-auth__rules-set {
  color: #3a3a3a;
}

@media (max-width: 1100px) {
  .hz-auth__rules {
    position: static;
    width: auto;
    margin-top: 8px;
    right: auto;
  }

  .hz-auth__rules::before {
    display: none;
  }
}

.hz-auth__note {
  margin: 8px 0 0;
  color: #5c5c5c;
  font-size: 14px;
  line-height: 20px;
}

.hz-auth__help {
  margin: 16px 0 0;
  text-align: center;
  color: #757575;
  font-size: 14px;
  line-height: 20px;
}

.hz-auth__help a {
  color: #1a1a1b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hz-auth__notice {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #eefaf3;
  color: #1f9d55;
  font-size: 14px;
  line-height: 20px;
}

.hz-page--auth .hz-auth__otp {
  letter-spacing: 0.35em;
  font-size: 22px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.hz-auth__resend {
  margin: 14px 0 0;
  text-align: center;
}

.hz-auth__textbtn {
  padding: 0;
  border: 0;
  background: none;
  color: #1a1a1b;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.hz-auth__textbtn:hover {
  color: #000;
}

@media (max-width: 480px) {
  .hz-auth__card {
    padding: 24px 20px;
  }

  .hz-page--auth .page-title {
    font-size: 28px;
    line-height: 34px;
  }
}
