/* Cofre do Henrique: folha única para guardar um login.
   Mundo: chaveiro, etiqueta de chave, cofre de escritório. Verde-garrafa como único acento. */
:root {
  --papel: #eef0eb;
  --folha: #fbfbf8;
  --tinta: #18201c;
  --tinta-2: #47524c;
  --tinta-3: #6d7771;
  --linha: #cfd5ce;
  --garrafa: #1f4d3c;
  --garrafa-escuro: #163a2d;
  --latao: #a98a4a;
  --alerta: #9b2c1f;
  --raio-campo: 10px;
  --raio-folha: 18px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100dvh;
  background: var(--papel);
  color: var(--tinta);
  font-family: "Avenir Next", "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  display: flex;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
}

.folha {
  width: 100%;
  max-width: 440px;
  background: var(--folha);
  border-radius: var(--raio-folha);
  box-shadow: 0 0 0 1px var(--linha);
  padding: 22px 22px 26px;
  align-self: flex-start;
}

.topo { margin-bottom: 14px; }
.dono { margin: 0; font-size: 15px; font-weight: 600; color: var(--garrafa); letter-spacing: 0.01em; }

h1 {
  margin: 6px 0 8px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 650;
  text-wrap: balance;
}

.aviso { margin: 0 0 14px; color: var(--tinta-2); font-size: 16px; }

/* Assinatura: etiqueta de chave com o único site que esta chave abre. */
.etiqueta {
  position: relative;
  display: grid;
  gap: 2px;
  margin: 4px 0 8px;
  padding: 14px 16px 14px 46px;
  border-radius: 8px 22px 22px 8px;
  background: #f3ecdc;
  box-shadow: inset 0 0 0 1px #dccfae;
}
.furo {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--folha);
  box-shadow: inset 0 0 0 3px var(--latao);
}
.etiqueta-rotulo { font-size: 14px; color: #5b513b; }
.etiqueta-site { font-size: 19px; font-weight: 650; overflow-wrap: anywhere; }
.etiqueta-origem { font-size: 15px; color: #3f4741; overflow-wrap: anywhere; }

form { margin-top: 6px; display: grid; }

label { font-size: 15px; font-weight: 600; margin: 14px 0 6px; }

input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font: inherit;
  color: var(--tinta);
  background: #fff;
  border: 1px solid var(--linha);
  border-radius: var(--raio-campo);
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
input::placeholder { color: #8b948e; }
input:focus { outline: none; border-color: var(--garrafa); box-shadow: 0 0 0 3px rgb(31 77 60 / 0.18); }

.senha { position: relative; }
.senha input { padding-right: 96px; }
.ver {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  min-width: 84px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--garrafa);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.ver:focus-visible { outline: 2px solid var(--garrafa); outline-offset: -2px; }

.erro { margin: 12px 0 0; color: var(--alerta); font-size: 15px; font-weight: 600; }

.guardar {
  margin-top: 22px;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: var(--garrafa);
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 150ms ease-out, transform 120ms ease-out;
}
.guardar:hover { background: var(--garrafa-escuro); }
.guardar:active { transform: scale(0.98); }
.guardar:focus-visible { outline: 3px solid rgb(31 77 60 / 0.35); outline-offset: 2px; }
.guardar:disabled { opacity: 0.6; cursor: progress; }

.prazo { margin: 12px 0 0; font-size: 14px; color: var(--tinta-3); font-variant-numeric: tabular-nums; text-align: center; }

#pronto h1 { color: var(--garrafa); }

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