/* ══ PROTECT APP — Specific styles ══ */

/* ── Card password — centrata nell'area canvas ── */
/* Centra la card password nell'area canvas */
.protect-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.protect-card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-1);
  padding: 32px 40px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.protect-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--grey-900);
}

/* ── Campi del form ── */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-700);
}

.field-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-input {
  width: 100%;
  padding: 10px 40px 10px 14px;
  border: 1px solid var(--grey-300);
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--grey-900);
  outline: none;
  transition: border-color 0.15s;
}

.field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(234, 67, 53, 0.15);
}

.field-input::placeholder {
  color: var(--grey-500);
}

/* ── Toggle mostra/nascondi password ── */
.field-toggle {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--grey-500);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 4px;
}

.field-toggle:hover {
  color: var(--grey-700);
  background: var(--grey-100);
}

/* ── Barra forza password ── */
.strength-bar {
  height: 3px;
  border-radius: 2px;
  background: var(--grey-200);
  margin-top: 4px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  border-radius: 2px;
  transition:
    width 0.3s,
    background 0.3s;
  width: 0%;
}

/* ── Indicatore match password ── */
.field-match {
  font-size: 11px;
  color: var(--grey-500);
  min-height: 16px;
}

.field-match.error {
  color: var(--accent);
}

.field-match.ok {
  color: var(--green);
}

/* ── Bottone Protect — allineato a destra ── */
.protect-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}
