/* The scene fills the same block that centers the form. */
.auth-body.cyber-auth {
  --auth-border: #a45de087;
  --auth-scene: url('/assets/cyber-auth/scene-wide.webp');
  display: grid;
  place-items: center;
  place-content: normal;
  min-height: calc(100dvh - 62px);
  padding: 24px 16px;
  background: var(--auth-scene) center center / cover no-repeat #090610;
}
.cyber-auth .auth {
  width: min(100%, 440px);
  max-width: 100%;
  padding: clamp(19px, 3vw, 34px);
  border: 1px solid var(--auth-border);
  border-radius: clamp(19px, 2.5vw, 30px);
  background:
    radial-gradient(ellipse at 0 0, #8e3ad84d, transparent 42%),
    radial-gradient(ellipse at 100% 100%, #7441be4f, transparent 50%),
    linear-gradient(150deg, #201231e8, #100c1bf2 42%, #181025ed);
  box-shadow: inset 0 1px 12px #e097fc50, inset 0 -4px 23px #a342df88, 0 0 29px #ab4fff6e, 0 22px 64px #050308a8;
  backdrop-filter: blur(10px);
}
.cyber-auth .auth-head {
  max-width: none;
  min-height: 0;
  gap: 6px;
  margin-bottom: 20px;
}
.cyber-auth .auth-head .logo {
  justify-self: center;
  width: min(180px, 66%);
  margin-bottom: 13px;
}
.cyber-auth .auth-head h1 {
  font-size: clamp(28px, 3.2vw, 39px);
  line-height: 1.08;
  letter-spacing: -.045em;
  margin: 0;
}
.cyber-auth .auth-head p {
  color: #dbd0e6;
  font-size: clamp(14px, 1.35vw, 16px);
  margin: 0;
  line-height: 1.4;
}
.cyber-auth .auth-form {gap: 11px}
.cyber-auth .auth-form .field {gap: 4px; min-width: 0; color: #efe4f6}
.cyber-auth .auth-form .field input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  font-size: 16px;
  border: 1px solid #765a9b70;
  background: #271d39e0;
  border-radius: 10px;
}
.cyber-auth .auth-form .field input:focus-visible,
.cyber-auth .auth-form button:focus-visible,
.cyber-auth .auth-switch a:focus-visible {
  outline: 2px solid #e6a7ff;
  outline-offset: 2px;
}
.cyber-auth .password-wrap input {padding-right: 94px}
.cyber-auth .password-wrap button {
  color: #ead8ff;
  min-width: 76px;
  font-size: 12px;
  font-weight: 600;
}
.cyber-auth .inline-check {min-height: 32px; width: fit-content; margin-top: 1px}
.cyber-auth .inline-check input {width: 17px; height: 17px; min-height: 0; accent-color: #c47bef}
.cyber-auth .auth-form > button {
  min-height: 47px;
  margin-top: 4px;
  border-color: #e69bff9c;
  border-radius: 12px;
  background: linear-gradient(165deg,#cc58fa,#8e1cdd 72%);
  box-shadow: inset 0 1px 9px #f1b9ff80, 0 0 20px #a43cf866;
  font-size: 15px;
}
.cyber-auth .auth-form > button:hover {filter: brightness(1.12)}
.cyber-auth .auth-form .error:not([hidden]) {margin: 0; line-height: 1.35; overflow-wrap: anywhere}
.cyber-auth .auth-switch {
  margin: 17px 0 0;
  padding-top: 13px;
  border-top-color: #a471c350;
  font-size: 14px;
  color: #eee5f3;
}
.cyber-auth .auth-switch a {font-weight: 650}

@media (max-aspect-ratio: 1/1) {
  .auth-body.cyber-auth {
    --auth-scene: url('/assets/cyber-auth/scene-tall.webp');
  }
}
@media (max-width: 680px) {
  .auth-body.cyber-auth {
    min-height: calc(100dvh - 56px);
    padding: 24px 14px;
  }
  .cyber-auth .auth {padding: 19px}
  .cyber-auth .auth-head .logo {margin-bottom: 7px; width: 146px}
  .cyber-auth .auth-head {margin-bottom: 14px}
}
@media (min-width: 681px) and (max-aspect-ratio: 1/1) {
  .cyber-auth .auth {width: min(100%, 560px); padding: 38px}
}
