/* Tela de login. Mesma identidade do painel (public/painel/painel.css):
   concreto, asfalto, âmbar do giroflex, fonte Barlow. Os tokens são uma cópia
   enxuta dos do painel — se a cor mudar lá, mude aqui também. */

:root {
  --fundo: #e7e8ea;
  --cartao: #ffffff;
  --cartao-2: #f4f5f7;
  --borda: #e0e3e7;
  --texto: #1b1d21;
  --suave: #555c68;
  --preto: #1b1d21;
  --laranja: #f29f2e;
  --quente: #c11f3c;
  --quente-fundo: #fde6ea;
  --sombra: 0 1px 2px rgb(27 29 33 / 5%), 0 4px 16px rgb(27 29 33 / 4%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--fundo);
  color: var(--texto);
  font: 15px/1.5 "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.pagina {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px 16px;
}

.cartao {
  width: min(400px, 100%);
  padding: 32px 32px 30px;
  border-radius: 24px;
  background: var(--cartao);
  box-shadow: var(--sombra);
}

.marca {
  display: flex;
  align-items: center;
  gap: 8px;
}

.marca-icone {
  width: 12px;
  height: 19px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--preto) 0 45%, var(--laranja) 45% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 45% 100%, 0 100%);
}

.marca-nome {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* A esfera é o Téo, como no painel. Único movimento da tela. */
.esfera {
  width: 56px;
  height: 56px;
  margin: 30px 0 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd59a 0%, #f29f2e 30%, #ef5a7a 62%, #8b5cf6 100%);
  box-shadow: 0 10px 34px rgb(239 90 122 / 30%), 0 0 0 9px rgb(242 159 46 / 8%);
  animation: flutuar 6s ease-in-out infinite;
}

@keyframes flutuar {
  50% {
    transform: translateY(-5px) scale(1.03);
  }
}

h1 {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.sub {
  margin: 6px 0 24px;
  color: var(--suave);
}

form {
  display: grid;
  gap: 6px;
}

label {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--borda);
  border-radius: 10px;
  background: var(--cartao-2);
  color: inherit;
  font: inherit;
  font-size: 16px; /* 16px: o iOS não dá zoom ao focar */
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

input:focus {
  border-color: var(--laranja);
  background: var(--cartao);
  box-shadow: 0 0 0 3px rgb(242 159 46 / 22%);
}

.campo-senha {
  position: relative;
}

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

.mostrar {
  position: absolute;
  top: 2px;
  right: 2px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--suave);
  cursor: pointer;
}

.mostrar:hover,
.mostrar[aria-pressed="true"] {
  color: var(--texto);
}

.icone {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.erro {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--quente-fundo);
  color: var(--quente);
  font-size: 14px;
  font-weight: 500;
}

.entrar {
  height: 48px;
  margin-top: 18px;
  border: 0;
  border-radius: 10px;
  background: var(--preto);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.entrar:hover:not(:disabled) {
  opacity: 0.88;
}

.entrar:disabled {
  opacity: 0.5;
  cursor: progress;
}

:focus-visible {
  outline: 2px solid var(--laranja);
  outline-offset: 2px;
}

.rodape {
  margin: 0;
  font-size: 13px;
  color: var(--suave);
}

@media (max-width: 420px) {
  .cartao {
    padding: 26px 20px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
