.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    linear-gradient(rgb(255 255 255 / 1.4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 1.4%) 1px, transparent 1px),
    radial-gradient(circle at 74% 34%, rgb(249 115 22 / 11%), transparent 30%),
    radial-gradient(circle at 16% 82%, rgb(249 115 22 / 5%), transparent 26%),
    #12100e;
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
}

.auth-header {
  width: min(100%, 1240px);
  min-height: 86px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid rgb(49 44 40 / 75%);
}

.auth-brand {
  width: 154px;
  display: block;
}

.auth-brand img {
  width: 100%;
  display: block;
}

.auth-back-link {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--texto-suave);
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.auth-back-link svg {
  width: 16px;
  height: 16px;
}

.auth-back-link:hover {
  color: var(--texto);
  border-color: var(--borda);
  background: rgb(255 255 255 / 2.5%);
}

.auth-main {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: clamp(58px, 8vw, 108px) clamp(24px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(390px, .78fr);
  align-items: center;
  gap: clamp(58px, 8vw, 112px);
}

.auth-introduction {
  max-width: 520px;
}

.auth-introduction h1 {
  max-width: 480px;
  margin: 24px 0 20px;
  font-size: clamp(54px, 6vw, 82px);
  line-height: .92;
  letter-spacing: -.06em;
  text-shadow: 1px 1px 0 var(--laranja-leve);
}

.auth-introduction > p {
  max-width: 500px;
  margin: 0;
  color: var(--texto-suave);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.7;
}

.auth-card {
  position: relative;
  min-width: 0;
  padding: clamp(26px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid #3a332e;
  border-left: 3px solid var(--laranja);
  border-radius: 7px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 2%), transparent 45%),
    rgb(25 22 20 / 96%);
  box-shadow: 12px 14px 0 rgb(0 0 0 / 18%), 0 30px 85px rgb(0 0 0 / 35%);
}

.auth-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--laranja), transparent 65%);
}

.auth-card-meta {
  margin-bottom: 30px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #80776f;
  border-bottom: 1px solid #39322d;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.auth-step[hidden] {
  display: none !important;
}

.auth-step-header {
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.auth-step-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--laranja);
  border: 1px solid rgb(249 115 22 / 46%);
  border-radius: 7px;
  background: rgb(249 115 22 / 7%);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.auth-step-header h2 {
  margin: 0;
  color: var(--texto);
  font-size: clamp(22px, 2.4vw, 29px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.auth-step-header p {
  margin: 8px 0 0;
  color: var(--texto-suave);
  font-size: 12px;
  line-height: 1.55;
}

.auth-step-header strong {
  color: #d9d3cf;
  font-weight: 750;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-field {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.auth-field label {
  color: #cfc8c3;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  color: var(--texto);
  border: 1px solid #443c36;
  border-radius: 7px;
  outline: 0;
  background: #141210;
  font: inherit;
  font-size: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-field input::placeholder {
  color: #625b55;
}

.auth-field input:hover {
  border-color: #5a4f47;
}

.auth-field input:focus {
  border-color: var(--laranja);
  background: #171310;
  box-shadow: 0 0 0 3px rgb(249 115 22 / 12%);
}

.auth-field input[aria-invalid="true"] {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgb(239 68 68 / 9%);
}

.auth-code-input {
  padding-left: 23px !important;
  font-size: clamp(25px, 5vw, 34px) !important;
  font-weight: 850 !important;
  letter-spacing: .32em;
  text-align: center;
}

.nickname-control {
  display: flex;
  align-items: center;
  min-height: 54px;
  overflow: hidden;
  border: 1px solid #443c36;
  border-radius: 7px;
  background: #141210;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nickname-control:focus-within {
  border-color: var(--laranja);
  background: #171310;
  box-shadow: 0 0 0 3px rgb(249 115 22 / 12%);
}

.nickname-control > span {
  width: 42px;
  flex: 0 0 42px;
  color: var(--laranja);
  font-size: 19px;
  font-weight: 850;
  text-align: center;
}

.nickname-control input {
  min-width: 0;
  min-height: 54px;
  padding: 0 16px 0 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
}

.nickname-control input:hover,
.nickname-control input:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.field-hint,
.field-error,
.nickname-availability {
  min-height: 14px;
  font-size: 10px;
  line-height: 1.4;
}

.field-hint {
  color: #716962;
}

.field-error {
  color: #f87171;
}

.nickname-availability {
  color: #4ade80;
}

.nickname-availability.is-unavailable,
.nickname-availability.is-invalid {
  color: #f87171;
}

.auth-submit {
  width: 100%;
  min-height: 52px;
  padding-inline: 18px;
  border-radius: 7px;
  cursor: pointer;
}

.auth-submit svg {
  width: 17px;
  height: 17px;
}

.auth-submit:disabled {
  opacity: .58;
  transform: none;
  cursor: wait;
}

.auth-helper {
  margin: 19px 0 0;
  color: #7f766f;
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}

.auth-secondary-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 10px 20px;
  flex-wrap: wrap;
}

.auth-secondary-actions button {
  padding: 4px 0;
  color: var(--texto-suave);
  border: 0;
  border-bottom: 1px solid #5a5049;
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.auth-secondary-actions button:hover {
  color: var(--laranja-suave);
  border-color: var(--laranja);
}

.auth-status {
  min-height: 18px;
  margin: 20px 0 0;
  color: var(--texto-suave);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.auth-status:empty {
  min-height: 0;
  margin-top: 0;
}

.auth-status.is-error {
  color: #f87171;
}

.auth-status.is-success {
  color: #4ade80;
}

.auth-footer {
  width: min(100%, 1240px);
  min-height: 78px;
  margin: 0 auto;
  padding: 20px clamp(24px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #68605a;
  border-top: 1px solid rgb(49 44 40 / 75%);
  font-size: 10px;
}

.auth-footer p {
  margin: 0;
}

.auth-footer a {
  color: #a49b95;
  text-decoration-color: #5b524c;
  text-underline-offset: 3px;
}

.auth-footer a:hover {
  color: var(--laranja-suave);
}

.auth-footer > span {
  flex: 0 0 auto;
  letter-spacing: .04em;
}

@media (max-width: 880px) {
  .auth-main {
    max-width: 650px;
    grid-template-columns: minmax(0, 1fr);
    gap: 46px;
  }

  .auth-introduction {
    max-width: none;
    text-align: center;
  }

  .auth-introduction .eyebrow {
    justify-content: center;
  }

  .auth-introduction h1,
  .auth-introduction > p {
    margin-inline: auto;
  }

}

@media (max-width: 580px) {
  .auth-header {
    min-height: 70px;
    padding-inline: 18px;
  }

  .auth-brand {
    width: 136px;
  }

  .auth-back-link {
    width: 42px;
    padding: 0;
    justify-content: center;
    border-color: var(--borda);
    background: var(--superficie);
    font-size: 0;
  }

  .auth-main {
    padding: 46px 16px 54px;
    gap: 38px;
  }

  .auth-introduction h1 {
    margin-top: 20px;
    font-size: clamp(48px, 17vw, 68px);
  }

  .auth-introduction > p {
    max-width: 430px;
    font-size: 14px;
  }

  .auth-card {
    padding: 24px 19px 26px;
    box-shadow: 7px 9px 0 rgb(0 0 0 / 18%), 0 24px 65px rgb(0 0 0 / 30%);
  }

  .auth-card-meta {
    margin-bottom: 25px;
    font-size: 7px;
    letter-spacing: .16em;
  }

  .auth-step-header {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 11px;
  }

  .auth-step-number {
    width: 30px;
    height: 30px;
  }

  .auth-step-header h2 {
    font-size: 22px;
  }

  .auth-code-input {
    letter-spacing: .24em;
  }

  .auth-footer {
    padding-block: 24px;
    flex-direction: column;
    text-align: center;
  }
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #211710 inset;
    -webkit-text-fill-color: #f5f2ee;
    caret-color: #f5f2ee;
    border: 1px solid #ff6b0a;
    transition: background-color 5000s ease-in-out 0s;
}

.nickname-control input:-webkit-autofill,
.nickname-control input:-webkit-autofill:hover,
.nickname-control input:-webkit-autofill:focus {
    border: 0;
    border-radius: 0;
}

@media (prefers-reduced-motion: reduce) {
  .auth-back-link,
  .auth-field input,
  .nickname-control {
    transition: none;
  }
}
