:root {
  --fundo: #f4f6fa;
  --superficie: #ffffff;
  --texto: #172033;
  --texto-suave: #667085;
  --primaria: #2457d6;
  --primaria-escura: #183f9f;
  --borda: #dfe5ef;
  --sucesso: #20a563;
  --erro: #c63838;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--texto);
  background: var(--fundo);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.pagina-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(440px, 0.95fr) 1.05fr;
}

.apresentacao {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 38px 54px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(
      circle at 95% 10%,
      rgba(91, 135, 242, 0.32),
      transparent 34%
    ),
    linear-gradient(145deg, #10192d, #182849);
}

.marca {
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
  font-size: 21px;
  font-weight: 750;
  text-decoration: none;
}

.marca-icone {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--primaria);
  border-radius: 12px;
}

.apresentacao-conteudo {
  max-width: 620px;
  margin: auto 0;
  padding: 70px 0;
}

.etiqueta {
  color: #91b2ff;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.apresentacao h1 {
  margin: 18px 0 22px;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.apresentacao-conteudo > p {
  max-width: 560px;
  color: #bec8dc;
  font-size: 18px;
  line-height: 1.7;
}

.recursos {
  display: grid;
  gap: 13px;
  margin-top: 40px;
}

.recursos div {
  display: flex;
  align-items: center;
  gap: 15px;
}

.recursos span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.08);
  color: #91b2ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  font-size: 11px;
  font-weight: 800;
}

.recursos p {
  margin: 0;
  color: #d5dbea;
  font-size: 14px;
}

.voltar {
  color: #aeb8ca;
  font-size: 13px;
  text-decoration: none;
}

.area-formulario {
  display: grid;
  place-items: center;
  padding: 42px;
}

.cartao-login {
  width: min(100%, 450px);
  padding: 40px;
  background: white;
  border: 1px solid var(--borda);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(24, 40, 73, 0.12);
}

.cabecalho-formulario .etiqueta {
  color: var(--primaria);
}

.cabecalho-formulario h2 {
  margin: 12px 0 10px;
  font-size: 32px;
  letter-spacing: -0.035em;
}

.cabecalho-formulario p {
  margin: 0 0 30px;
  color: var(--texto-suave);
  font-size: 14px;
  line-height: 1.6;
}

form {
  display: grid;
}

label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 49px;
  padding: 0 14px;
  color: var(--texto);
  background: #fbfcfe;
  border: 1px solid var(--borda);
  border-radius: 11px;
  outline: none;
}

input:focus {
  background: white;
  border-color: var(--primaria);
  box-shadow: 0 0 0 4px rgba(36, 87, 214, 0.1);
}

#password,
.campo-senha {
  margin-bottom: 0;
}

#username {
  margin-bottom: 20px;
}

.campo-senha {
  position: relative;
}

.campo-senha input {
  padding-right: 82px;
}

.campo-senha button {
  position: absolute;
  top: 50%;
  right: 11px;
  padding: 5px 7px;
  color: var(--primaria);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-50%);
}

.mensagem {
  min-height: 22px;
  margin: 12px 0 5px;
  color: var(--erro);
  font-size: 13px;
}

.botao-entrar {
  min-height: 50px;
  color: white;
  background: var(--primaria);
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 750;
  transition: 0.2s ease;
}

.botao-entrar:hover {
  background: var(--primaria-escura);
}

.botao-entrar:disabled {
  cursor: wait;
  opacity: 0.7;
}

.estado-servidor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
  color: var(--texto-suave);
  font-size: 11px;
}

.estado-servidor span:first-child {
  width: 8px;
  height: 8px;
  background: #c5cad3;
  border-radius: 50%;
}

.estado-servidor span:first-child.online {
  background: var(--sucesso);
  box-shadow: 0 0 0 4px rgba(32, 165, 99, 0.12);
}

.estado-servidor span:first-child.offline {
  background: var(--erro);
}

@media (max-width: 850px) {
  .pagina-login {
    grid-template-columns: 1fr;
  }

  .apresentacao {
    min-height: auto;
    padding: 28px;
  }

  .apresentacao-conteudo {
    padding: 65px 0;
  }

  .apresentacao h1 {
    font-size: 44px;
  }

  .area-formulario {
    padding: 35px 20px;
  }
}

@media (max-width: 500px) {
  .cartao-login {
    padding: 28px 22px;
  }

  .apresentacao h1 {
    font-size: 38px;
  }
}
