:root {
  --fundo: #eef2f7;
  --cartao: #ffffff;
  --texto: #0f172a;
  --texto2: #64748b;
  --borda: #dbe3ec;
  --acento: #4f46e5;
  --ruim: #dc2626;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fundo: #0b1120; --cartao: #131c2e; --texto: #e8eef7;
    --texto2: #94a3b8; --borda: #243044; --acento: #818cf8;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--fundo);
  color: var(--texto);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.cartao {
  width: 100%;
  max-width: 380px;
  background: var(--cartao);
  border: 1px solid var(--borda);
  border-radius: 16px;
  padding: 34px 30px 26px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, .10);
  text-align: center;
}

.marca {
  width: 46px; height: 46px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--acento);
  color: #fff;
  font-weight: 700; letter-spacing: .5px;
}

h1 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.2px; }
.sub { margin: 0 0 26px; color: var(--texto2); font-size: 13px; }

label {
  display: block;
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--texto2);
  margin-bottom: 6px;
}

input {
  width: 100%;
  padding: 11px 13px;
  font-size: 15px;
  font-family: inherit;
  color: var(--texto);
  background: var(--fundo);
  border: 1px solid var(--borda);
  border-radius: 9px;
  outline: none;
}
input:focus { border-color: var(--acento); box-shadow: 0 0 0 3px rgba(79, 70, 229, .18); }

button {
  width: 100%;
  margin-top: 14px;
  padding: 11px;
  font: 600 15px/1 inherit;
  color: #fff;
  background: var(--acento);
  border: 0;
  border-radius: 9px;
  cursor: pointer;
}
button:hover:not(:disabled) { filter: brightness(1.08); }
button:disabled { opacity: .6; cursor: default; }

.erro {
  margin: 14px 0 0;
  padding: 9px 11px;
  font-size: 13px;
  color: var(--ruim);
  background: rgba(220, 38, 38, .09);
  border-radius: 8px;
}

.rodape {
  margin: 22px 0 0;
  font-size: 11.5px;
  color: var(--texto2);
  line-height: 1.5;
}

/* olhinho para conferir o que foi digitado */
.campo-senha { position: relative; }
.campo-senha input { padding-right: 44px; }
.olho {
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  margin: 0; padding: 0;
  display: grid; place-items: center;
  font-size: 17px; line-height: 1;
  background: none; border: 0; border-radius: 8px;
  cursor: pointer; opacity: .65;
}
.olho:hover { opacity: 1; background: rgba(127,127,127,.12); }
