/* ============================================
   ADMIN/PASSWORD.css
   Vistas asociadas:
   - auth/set-password.blade.php (Admin)
   - auth/register.blade.php (Cliente)
   - auth/forgot-password.blade.php (Cliente)
   Propósito: Estilos específicos para la validación y fortaleza de contraseñas.
   Dependencias: components.css, admin/layout.css.
   ============================================ */
/* Toggle de visibilidad */
.password-wrapper {
    position: relative;
}
.password-wrapper .form-control {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    font-size: 18px;
    transition: color 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.password-toggle:hover {
    color: var(--brand-purple);
    background: rgba(79,70,229,0.08);
}
.password-toggle:active {
    transform: translateY(-50%) scale(0.92);
}

/* Medidor de fortaleza */
.password-strength-bar {
    height: 4px;
    border-radius: 4px;
    background: #e9ecef;
    margin-top: 8px;
    overflow: hidden;
}
.password-strength-bar .bar {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.4s ease, background 0.4s ease;
}
.password-strength-label {
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Lista de requisitos */
.password-requirements {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
}
.password-requirements li {
    font-size: 13px;
    color: #dc3545; /* Rojo por defecto cuando no se cumple */
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
    padding: 2px 0;
}
.password-requirements li .req-icon {
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.password-requirements li.met {
    color: #28a745; /* Verde cuando ya se cumple */
}
.password-requirements li.met .req-icon {
    color: #28a745;
}
.password-requirements li:not(.met) .req-icon {
    color: #dc3545;
}

/* Feedback de coincidencia */
.password-match-feedback {
    font-size: 13px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.password-match-feedback.match {
    color: #28a745;
}
.password-match-feedback.no-match {
    color: #dc3545;
}
.password-match-feedback .match-icon {
    font-size: 16px;
}

/* Ajuste responsive */
@media (max-width: 576px) {
    .password-requirements {
        grid-template-columns: 1fr;
    }
}