body[data-screen="34"] .app { background: #050506; }
.auth { container-type: inline-size; min-height: 0; color: #f7f7f8; }
.auth [hidden] { display: none; }
.auth-wave { display: block; width: 100%; height: auto; }
.auth-body { width: 90%; margin: 0 auto; padding-bottom: max(42px, env(safe-area-inset-bottom)); }
.auth h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(29px, 9.1cqi, 44px);
  line-height: 1.08;
  font-weight: 780;
}
.auth-register h1 { font-size: clamp(24px, 7.1cqi, 35px); }
.auth-intro {
  max-width: 78cqi;
  margin: 3.1cqi auto 0;
  text-align: center;
  color: #a5a8ae;
  font-size: clamp(14px, 3.75cqi, 18px);
  line-height: 1.3;
  text-wrap: balance;
}
.auth-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 7cqi 0 4.6cqi;
  padding: 2px;
  border: 1px solid #484a4c;
  border-radius: 999px;
  background: #141517;
}
.auth-switch a {
  display: grid;
  min-height: clamp(40px, 11.25cqi, 54px);
  place-items: center;
  padding-inline: 4px;
  border-radius: inherit;
  font-size: clamp(14px, 3.65cqi, 18px);
}
.auth-switch a[aria-current], .auth-submit {
  background: linear-gradient(#fafafa, #eceeef);
  color: #080909;
  font-weight: 750;
}
.auth-form { display: grid; gap: 3.25cqi; }
.auth-register .auth-form { gap: 2.4cqi; }
.auth-field {
  display: flex;
  align-items: center;
  gap: 4cqi;
  min-height: clamp(43px, 11.3cqi, 55px);
  padding: 0 4.35cqi;
  border: 1px solid #484a4c;
  border-radius: clamp(12px, 3.6cqi, 17px);
  background: linear-gradient(135deg, #111214, #151618);
}
.auth-field:focus-within { border-color: #90949a; }
.auth-field input {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: clamp(14px, 3.65cqi, 18px);
}
.auth-field input::placeholder { color: #a8abb0; opacity: 1; }
.auth-field .auth-icon, .auth-field .nx-icon { width: 4.8cqi; height: 4.8cqi; flex: none; opacity: .8; }
.auth-icon { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-password, .auth-link { border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.auth-password { display: grid; position: relative; place-items: center; min-width: 26px; min-height: 32px; }
.auth-password[aria-pressed="false"]::after {
  position: absolute;
  width: 5.4cqi;
  height: 1.5px;
  background: #afb2b7;
  transform: rotate(45deg);
  box-shadow: 0 1.5px #151618;
  content: "";
}
.auth-link { text-decoration: underline; text-underline-offset: 3px; }
.auth-consent {
  display: flex;
  gap: 4cqi;
  align-items: center;
  margin: 3cqi 0 4.1cqi;
  color: #b6b8bd;
  font-size: clamp(12px, 3.05cqi, 15px);
  line-height: 1.45;
}
.auth-consent input {
  appearance: none;
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(19px, 5.3cqi, 25px);
  height: clamp(19px, 5.3cqi, 25px);
  box-sizing: border-box;
  margin: 0;
  border: 1px solid #7b7e82;
  border-radius: 5px;
  background: #151619;
  cursor: pointer;
}
.auth-consent input:focus-visible { outline: 2px solid #f5f6f7; outline-offset: 3px; }
.auth-consent input:checked { border-color: #f5f6f7; background: #f5f6f7; color: #080909; }
.auth-consent input:checked::before { content: "✓"; font-size: 15px; font-weight: 700; line-height: 1; }
.auth-consent .auth-link { color: #f0f0f1; text-align: left; }
.auth-submit {
  width: 100%;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.auth-submit {
  min-height: clamp(44px, 12.1cqi, 58px);
  border-radius: 999px;
  font-size: clamp(16px, 4cqi, 19px);
  font-weight: 750;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 4.2cqi;
  margin: 5.8cqi 0 5.2cqi;
  color: #aaadb1;
  font-size: clamp(11px, 3.05cqi, 15px);
}
.auth-divider::before, .auth-divider::after { flex: 1; height: 1px; background: #3d3e41; content: ""; }
.auth-register .auth-divider { margin-top: 1.2cqi; }
.auth-vk {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.4cqi;
  width: 100%;
  min-height: clamp(39px, 10.2cqi, 49px);
  border: 0;
  border-radius: clamp(9px, 2.5cqi, 12px);
  background: #3072ef;
  color: #fff;
  font: inherit;
  font-weight: 680;
  font-size: clamp(15px, 3.55cqi, 18px);
  cursor: pointer;
}
.auth-register .auth-vk { background: #0877fa; }
.auth-vk svg { width: 4.35cqi; height: 4.35cqi; color: #2876f1; }

body[data-screen="34"] .top { position: relative; z-index: 1; }
body[data-screen="34"] .auth { margin-top: 30px; }

@media (max-height: 820px) {
  .auth-wave {
    height: clamp(58px, calc(23dvh - 88px), 144px);
    object-fit: cover;
    object-position: center bottom;
  }
  .auth-body { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .auth-intro { margin-top: 2.1cqi; }
  .auth-switch { margin: 4.5cqi 0 3.4cqi; }
  .auth-form { gap: 2.35cqi; }
  .auth-register .auth-form { gap: 2cqi; }
  .auth-consent { margin: 2.2cqi 0 2.8cqi; }
  .auth-divider { margin: 4cqi 0 3.5cqi; }
}

@media (max-height: 700px) {
  .auth-switch a, .auth-field, .auth-submit { min-height: 42px; }
  .auth-switch { margin: 3cqi 0 2.5cqi; }
  .auth-divider { margin: 3cqi 0 2.5cqi; }
}

@media (max-height: 620px) {
  .auth-wave { height: 44px; }
  .auth-switch { margin: 2.2cqi 0 2cqi; }
  .auth-form, .auth-register .auth-form { gap: 1.6cqi; }
  .auth-divider { margin: 2.5cqi 0 2cqi; }
}
