.auth-shell {
  width: min(100%, 540px);
  margin: auto 0;
  padding: 54px 0 42px;
}

.auth-contexto {
  margin-bottom: 34px;
}

.auth-contexto h1 {
  max-width: 520px;
  margin: 10px 0 14px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.auth-contexto h1::after {
  width: 76px;
  height: 2px;
  margin-top: 19px;
}

.auth-contexto p {
  max-width: 510px;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.auth-tela {
  width: min(100%, 470px);
  animation: entrar .2s ease both;
}

.auth-cabecalho {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.auth-cabecalho h2 {
  margin: 5px 0 0;
  font-size: 25px;
  letter-spacing: -.035em;
}

.auth-cabecalho > a,
.auth-linha a,
.auth-voltar {
  color: #7dcbff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.auth-cabecalho > a:hover,
.auth-linha a:hover,
.auth-voltar:hover {
  color: #bfe7ff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-etapa {
  color: #748ba6;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

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

.auth-campo {
  display: grid;
  gap: 7px;
}

.auth-campo > span {
  color: #aebed0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

.auth-campo small {
  color: #657b94;
  font-size: 10px;
  line-height: 1.45;
}

.auth-campo input {
  width: 100%;
  min-height: 47px;
  padding: 11px 13px;
  color: #f5f9ff;
  border: 1px solid rgba(111, 161, 213, .19);
  border-radius: 10px;
  outline: none;
  background: rgba(7, 19, 34, .72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.auth-campo input::placeholder {
  color: #51667e;
}

.auth-campo input:hover {
  border-color: rgba(111, 174, 231, .32);
}

.auth-campo input:focus-visible {
  border-color: rgba(59, 184, 255, .72);
  background: rgba(8, 24, 43, .9);
  box-shadow: 0 0 0 3px rgba(54, 183, 255, .09), 0 10px 28px rgba(0,0,0,.16);
}

.auth-campo input:read-only {
  color: #8edaff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: .05em;
}

.auth-codigo {
  max-width: 190px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 21px !important;
  font-weight: 760;
  letter-spacing: .22em !important;
}

.auth-linha {
  display: flex;
  gap: 12px;
  align-items: center;
}

.auth-linha-direita {
  justify-content: flex-end;
  margin-top: -2px;
}

.auth-form .botao.grande {
  margin-top: 8px;
}

.auth-separador {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 23px 0 15px;
  color: #50657c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.auth-separador::before,
.auth-separador::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(110, 158, 207, .12);
}

.auth-feedback {
  width: min(100%, 470px);
  margin: -11px 0 20px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 110, 141, .22);
  border-radius: 9px;
  color: #ff9caf;
  background: rgba(255, 82, 119, .055);
  font-size: 11px;
  line-height: 1.5;
}

.auth-feedback[data-tipo="sucesso"] {
  color: #8ceec3;
  border-color: rgba(82, 221, 162, .22);
  background: rgba(82, 221, 162, .055);
}

.auth-ajuda {
  margin: 16px 0 0 !important;
  color: #7489a1 !important;
  font-size: 11px !important;
  line-height: 1.6 !important;
}

.auth-ajuda-topo {
  margin: -8px 0 20px !important;
}

.auth-link-botao {
  margin-top: 16px;
  padding: 0;
  border: 0;
  color: #7dcbff;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.auth-link-botao:hover {
  color: #c0e8ff;
}

.auth-link-botao:focus-visible,
.auth-cabecalho a:focus-visible,
.auth-linha a:focus-visible,
.auth-voltar:focus-visible {
  outline: 2px solid #53c1ff;
  outline-offset: 4px;
  border-radius: 4px;
}

.auth-recuperacao-confirmacao {
  margin-top: 22px;
}

.auth-divisor {
  height: 1px;
  margin-bottom: 22px;
  background: linear-gradient(90deg, rgba(54,183,255,.32), rgba(117,87,255,.08), transparent);
}

.auth-chave-linha {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.auth-chave-linha .botao {
  min-width: 76px;
}

.auth-mfa-setup {
  padding: 14px;
  margin: 0 0 18px;
  border: 1px solid rgba(54,183,255,.15);
  border-radius: 12px;
  background: rgba(37, 132, 218, .045);
}

.auth-mfa-setup .auth-ajuda {
  margin: 0 0 13px !important;
}

.auth-voltar {
  display: inline-block;
  margin-top: 20px;
}

.auth-rodape {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #4f647c;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.identidade-diagrama {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 330px;
  height: 330px;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.identidade-nucleo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(91, 197, 255, .4);
  border-radius: 24px;
  color: #b8e8ff;
  background: linear-gradient(145deg, rgba(24, 134, 232, .2), rgba(84, 74, 223, .13));
  box-shadow: 0 0 55px rgba(40, 151, 255, .2), inset 0 0 25px rgba(57, 183, 255, .08);
  font-weight: 800;
  letter-spacing: -.05em;
}

.identidade-anel {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(68, 164, 244, .16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.identidade-anel-a { width: 210px; height: 210px; }
.identidade-anel-b { width: 320px; height: 320px; border-color: rgba(99, 95, 230, .12); }

.identidade-ponto {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5bcfff;
  box-shadow: 0 0 16px rgba(91, 207, 255, .75);
}

.ponto-a { left: 46px; top: 105px; }
.ponto-b { right: 39px; top: 157px; background: #7966ff; }
.ponto-c { left: 158px; bottom: 55px; background: #51ddaa; }

.painel-c {
  right: 12%;
  bottom: 9%;
  width: 248px;
  animation-delay: -1.8s;
}

@media (max-width: 1120px) {
  .login {
    grid-template-columns: minmax(390px, .95fr) 1.05fr;
  }
  .login-painel {
    padding-left: 40px;
    padding-right: 40px;
  }
  .painel-flutuante { width: 250px; }
  .painel-c { width: 220px; }
}

@media (max-width: 860px) {
  .login {
    display: block;
    min-height: 100vh;
  }
  .login-painel {
    min-height: 100vh;
    padding: 28px clamp(20px, 6vw, 46px);
    border-right: 0;
  }
  .login-visual {
    display: none;
  }
  .auth-shell {
    margin: auto;
    width: min(100%, 520px);
    padding: 50px 0;
  }
  .auth-tela,
  .auth-feedback {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .login-painel {
    padding: 22px 18px;
  }
  .auth-shell {
    padding: 42px 0 34px;
  }
  .auth-contexto {
    margin-bottom: 27px;
  }
  .auth-contexto h1 {
    font-size: 34px;
  }
  .auth-cabecalho {
    align-items: start;
  }
  .auth-codigo {
    max-width: 100%;
  }
  .auth-rodape {
    flex-direction: column;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-tela,
  .painel-flutuante {
    animation: none !important;
  }
}
