/* A entrada: uma coluna só, no mesmo tom do app. */
:root {
  color-scheme: dark;
  --fundo: #0a0a0b;
  --s2: #151517;
  --s3: #1c1c1f;
  --linha2: rgba(244, 244, 245, 0.13);
  --tinta: #f4f4f5;
  --tinta2: #c2c2c9;
  --tinta3: #8e8e97;
  --tinta4: #6a6a73;
  --ouro: #f3bc56;
  --ruim: #fe7873;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/entrar/fontes/onest-latin.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--fundo);
}

body {
  display: grid;
  min-height: 100dvh;
  margin: 0;
  padding: 24px 16px;
  place-items: center;
  background: var(--fundo);
  color: var(--tinta);
  font: 400 15px/22px "Onest", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.entrar {
  width: 100%;
  max-width: 360px;
  margin-bottom: 8dvh;
}

.marca {
  display: block;
  width: 190px;
  margin-bottom: 40px;
}

.marca .logo {
  display: block;
  width: 100%;
  height: auto;
}

.passo {
  display: grid;
}

h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 650;
  line-height: 32px;
  letter-spacing: -0.022em;
}

p {
  margin: 0;
}

.apoio {
  margin: 8px 0 28px;
  color: var(--tinta3);
}

.apoio b {
  color: var(--tinta2);
  font-weight: 500;
  overflow-wrap: anywhere;
}

label {
  margin-bottom: 8px;
  color: var(--tinta2);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--s2);
  box-shadow: inset 0 0 0 1px var(--linha2);
  color: var(--tinta);
  /* 16px: abaixo disso o iPhone dá zoom ao focar. */
  font: inherit;
  font-size: 16px;
  outline: none;
}

input::placeholder {
  color: var(--tinta4);
}

input:focus-visible {
  box-shadow: inset 0 0 0 1.5px var(--ouro);
}

input.codigo {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.erro {
  margin-top: 10px;
  color: var(--ruim);
  font-size: 13px;
  line-height: 18px;
}

.botao {
  height: 48px;
  margin-top: 16px;
  border: 0;
  border-radius: 10px;
  background: var(--ouro);
  color: #17120a;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.12s;
}

.botao:hover {
  background: #f6c66d;
}

.botao:active {
  transform: scale(0.985);
}

.botao:disabled {
  opacity: 0.6;
  cursor: default;
}

.botao:focus-visible,
.texto:focus-visible {
  outline: 2px solid rgba(244, 244, 245, 0.5);
  outline-offset: 2px;
}

.depois {
  margin-top: 24px;
  color: var(--tinta3);
  font-size: 13px;
  line-height: 19px;
}

.acoes {
  display: flex;
  gap: 20px;
  margin-top: 12px;
}

.texto {
  padding: 0;
  border: 0;
  background: none;
  color: var(--tinta2);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--linha2);
  text-underline-offset: 4px;
  cursor: pointer;
}

.texto:hover {
  color: var(--tinta);
  text-decoration-color: var(--tinta3);
}

.texto:disabled {
  color: var(--tinta4);
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  .botao {
    transition: none;
  }
}
