.identity-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - var(--header-height));
  padding-block: 64px;
  text-align: center;
}
.identity-intro__copy {
  width: 100%;
  max-width: 680px;
}
.identity-intro h1 {
  font-family: "Cal Sans", Geist, sans-serif;
  font-size: clamp(52px, 5.4vw, 72px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 30px;
}
.identity-intro h1 > span {
  font-family: "Geist Mono", monospace;
  font-size: 0.8em;
  font-weight: 400;
}
.identity-description {
  max-width: 560px;
  margin-inline: auto;
  font-size: 17px;
  line-height: 1.9;
  color: #a6a6a6;
}
.identity-continue {
  margin-top: 36px;
  min-height: 48px;
}
@keyframes identity-arrive {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.identity-auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding-block: 64px;
  max-width: 480px;
}
.identity-auth--register {
  max-width: 600px;
}
.auth-panel {
  width: 100%;
  min-width: 0;
  animation: identity-arrive 450ms ease-out both;
}
.auth-title {
  text-align: center;
  margin: 0;
  font-family: Geist, Arial, sans-serif;
  font-size: 32px;
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.auth-intro {
  text-align: center;
  margin-top: 16px;
  color: #8d8d8d;
  font-size: 13px;
  line-height: 1.8;
}
.identity-form {
  display: grid;
  gap: 23px;
  margin-top: 34px;
}
.identity-form--register {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
}
.auth-field--full {
  grid-column: 1/-1;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #d0d0d0;
}
.auth-field small {
  font-size: 10px;
  line-height: 1.6;
  color: #777;
}
.auth-field input {
  min-width: 0;
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 13px;
  border: 1px solid #ffffff20;
  border-radius: 4px;
  background: #0d0d0d;
  color: #eee;
  font:
    400 14px/1 Geist,
    Arial,
    sans-serif;
  box-shadow: inset 0 1px 2px #0005;
  transition:
    border-color 180ms,
    box-shadow 180ms;
  outline: none;
}
.auth-field input:hover {
  border-color: #ffffff38;
}
.auth-field input:focus {
  border-color: #ffffff70;
  box-shadow: 0 0 0 3px #ffffff07;
}
.auth-field input[aria-invalid="true"] {
  border-color: #b98181;
}
.auth-field input::placeholder {
  color: #505050;
}
.auth-field input:-webkit-autofill {
  -webkit-text-fill-color: #eee;
  box-shadow: 0 0 0 1000px #161616 inset;
}
.auth-field__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.auth-field .activation-key-input {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.auth-password {
  position: relative;
  display: block;
}
.auth-password input {
  padding-right: 48px;
}
.password-toggle {
  position: absolute;
  top: 1px;
  right: 1px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #808080;
  line-height: 1;
}
.password-toggle svg {
  width: 18px;
  height: 18px;
}
.password-toggle:hover {
  color: #fff;
}
.eye-slash {
  display: none;
}
.password-toggle[aria-pressed="true"] .eye-slash {
  display: block;
}
.password-toggle:focus-visible {
  outline: 1px solid #aaa;
  outline-offset: -4px;
}
.auth-consent {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #939393;
  font-size: 11px;
  line-height: 1.85;
  cursor: pointer;
}
.auth-consent a {
  color: #d0d0d0;
  text-decoration: underline;
  text-decoration-color: #ffffff30;
  text-underline-offset: 3px;
}
.auth-consent a:hover {
  color: #fff;
  text-decoration-color: #ffffff90;
}
.auth-submit {
  width: 100%;
  min-height: 46px;
}
.auth-submit:disabled {
  cursor: wait;
  opacity: 0.6;
}
.auth-submit .auth-busy {
  display: none;
  width: 16px;
  height: 16px;
  border: 1px solid #3335;
  border-top-color: #333;
  border-radius: 50%;
  animation: auth-spin 700ms linear infinite;
}
.identity-form[aria-busy="true"] .auth-submit > .auth-busy {
  display: block;
}
.identity-form[aria-busy="true"] .auth-submit > svg {
  display: none;
}
@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}
.auth-switch {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 28px;
  color: #797979;
  font-size: 11px;
  line-height: 1.7;
}
.auth-switch > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  line-height: 1;
  color: #d0d0d0;
}
.auth-switch > a:hover {
  color: #fff;
}
.auth-switch svg {
  width: 13px;
  height: 13px;
}
.auth-service-error {
  margin-top: 24px;
  color: #c7a7a7;
  font-size: 13px;
  line-height: 1.8;
}
@media (max-width: 720px) {
  .identity-intro {
    padding-block: 48px;
  }
  .identity-intro h1 {
    font-size: 48px;
    margin-bottom: 22px;
  }
  .identity-description {
    font-size: 15px;
    max-width: 480px;
  }
  .identity-continue {
    margin-top: 28px;
  }
  .identity-auth {
    padding-block: 40px 56px;
  }
  .auth-title {
    font-size: 28px;
  }
  .identity-form {
    margin-top: 28px;
    gap: 22px;
  }
  .auth-field input {
    font-size: 16px;
  }
}
@media (max-width: 420px) {
  .identity-form--register {
    grid-template-columns: 1fr;
  }
  .identity-intro h1 {
    font-size: 42px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth-panel,
  .auth-submit .auth-busy {
    animation: none;
  }
  .auth-field input {
    transition: none;
  }
}

.email-verification {
  max-width: 460px;
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: center;
  padding-block: 64px;
}
.email-code-input {
  text-align: center;
  font-family: "Geist Mono", monospace !important;
  font-size: 24px !important;
  letter-spacing: 0.3em;
}
.verification-delivery {
  margin-top: 20px;
  min-height: 24px;
  color: #929292;
  font-size: 12px;
  text-align: center;
}
.verification-resend {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  margin: 12px auto 0;
  border: 0;
  background: none;
  color: #bbb;
  font-size: 12px;
  line-height: 1;
}
.verification-resend:disabled {
  opacity: 0.4;
  cursor: default;
}
