/* FrogPass - tool-specific styles. Header, hero, footer, privacy badge, the
   button system, and the :root tokens come from the shared shell
   (tool-shell.css); this file carries the password output, strength bar, and
   the generator controls. */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Password output ─────────────────────────────────────────────────── */

.fp-output {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.fp-password {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 1rem 1.15rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-light);
  line-height: 1.3;
  word-break: break-all;
  overflow-wrap: anywhere;
}
.fp-password--error {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #ff8a8a;
}
.fp-output-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ─── Strength indicator ──────────────────────────────────────────────── */

.fp-strength {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.fp-strength-bar {
  flex: 1 1 220px;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-deep);
  border: 1px solid var(--border-dark);
  overflow: hidden;
}
.fp-strength-fill {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: 999px;
  background: #ff6b6b;
  transition: width 150ms ease, background 150ms ease;
}
.fp-strength-bar[data-band="0"] .fp-strength-fill { width: 25%;  background: #ff6b6b; }
.fp-strength-bar[data-band="1"] .fp-strength-fill { width: 50%;  background: #ffb454; }
.fp-strength-bar[data-band="2"] .fp-strength-fill { width: 75%;  background: var(--accent); }
.fp-strength-bar[data-band="3"] .fp-strength-fill { width: 100%; background: var(--accent); }

.fp-strength-meta {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--mono);
  white-space: nowrap;
}
.fp-strength-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-light);
}
.fp-strength-entropy {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ─── Controls ────────────────────────────────────────────────────────── */

.fp-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.fp-field-label {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.fp-length-value {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--accent);
}

.fp-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-deep);
  border: 1px solid var(--border-dark);
  outline: none;
  cursor: pointer;
}
.fp-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}
.fp-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}
.fp-range:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); }

.fp-options {
  border: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
}
.fp-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-light);
  cursor: pointer;
}
.fp-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  flex: 0 0 auto;
}

.fp-footer-actions {
  margin-top: 1.5rem;
}

.fp-hint {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 560px) {
  .fp-password { font-size: 1.15rem; }
  .fp-options { grid-template-columns: minmax(0, 1fr); }
  .btn--sm { min-height: 44px; }
}
