/* Gerador de senha — complemento do style.css.
   Carregado só nesta página; nada de estilo inline (CSP style-src 'self'). */

.senha-caixa {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 18px 40px rgba(24, 62, 53, .07);
}

.senha-rotulo {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  font-size: .95rem;
}

.senha-linha {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}

.senha-entrada {
  flex: 1 1 260px;
  min-width: 0;
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  letter-spacing: .02em;
  padding: 14px 16px;
  border: 1px solid #b9c2b4;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  min-height: 52px;
  word-break: break-all;
}

.senha-entrada:focus {
  border-color: var(--forest);
  outline: 3px solid #cfe0bf;
  outline-offset: 0;
}

.senha-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.senha-acoes .button,
.senha-acoes .secondary {
  min-height: 48px;
}

.forca {
  margin-top: 18px;
}

.forca-topo {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.forca-topo strong {
  color: var(--ink);
}

.forca-trilha {
  height: 10px;
  border-radius: 999px;
  background: var(--wash);
  overflow: hidden;
}

.forca-barra {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: #c2410c;
  transition: width .18s ease, background-color .18s ease;
}

.forca-barra[data-nivel="1"] { background: #d97706; }
.forca-barra[data-nivel="2"] { background: #ca8a04; }
.forca-barra[data-nivel="3"] { background: #4d7c0f; }
.forca-barra[data-nivel="4"] { background: #15803d; }

#forca-texto {
  margin: 8px 0 0;
  font-size: .92rem;
  color: var(--muted);
}

.senha-opcoes {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  align-items: end;
}

.senha-opcao {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: .95rem;
  color: var(--ink);
  cursor: pointer;
}

.senha-opcao input {
  width: 20px;
  height: 20px;
  flex: none;
  accent-color: var(--forest);
}

.campo-tamanho {
  grid-column: 1 / -1;
}

.campo-tamanho input[type="range"] {
  width: 100%;
  min-height: 44px;
  accent-color: var(--forest);
}

.campo-tamanho output {
  font-weight: 600;
  color: var(--ink);
}

.aviso {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--wash);
  font-size: .93rem;
  line-height: 1.5;
  color: var(--ink);
}

.aviso[data-estado="bom"] {
  background: #eef7e4;
  border-color: #b9d79a;
}

.aviso[data-estado="ruim"] {
  background: #fdeee9;
  border-color: #f0b8a4;
}

.erro {
  margin: 12px 0 0;
  color: #b42318;
  font-weight: 600;
  font-size: .93rem;
}

.nota-privacidade {
  margin: 16px 0 0;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.5;
}
