/* ==========================================================================
   Estilos Específicos para Proteger PDF
   ========================================================================== */

/* Dashboard de Seguridad */
.security-dashboard {
    background: #111;
    border: 1px solid #333;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.password-setup-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 10px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    color: #e5e5e5;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Wrapper para el input y el ojito */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;
    background: #1a1a1a;
    border: 2px solid #333;
    color: #fff;
    padding: 14px 45px 14px 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.password-input-wrapper input:focus {
    outline: none;
    border-color: #00e676;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

.toggle-visibility {
    position: absolute;
    right: 15px;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.toggle-visibility:hover {
    color: #fff;
}

/* Medidor de Fuerza */
.password-strength-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 5px;
}

.strength-bar-bg {
    flex-grow: 1;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    background: #ff4081;
    border-radius: 3px;
    transition: width 0.4s ease, background-color 0.4s ease;
}

.strength-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    min-width: 80px;
    text-align: right;
    transition: color 0.4s ease;
}

/* Errores */
.error-msg {
    color: #E50914;
    font-size: 0.85rem;
    margin-top: 2px;
}

.password-input-wrapper input.error {
    border-color: #E50914;
    animation: shake 0.4s ease-in-out;
}

/* Aviso de Seguridad */
.security-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(229, 9, 20, 0.1);
    border-left: 4px solid #E50914;
    padding: 15px;
    border-radius: 4px;
    margin-top: 10px;
}

.security-warning p {
    margin: 0;
    color: #ccc;
    font-size: 0.85rem;
    line-height: 1.5;
}

.security-warning strong {
    color: #E50914;
}

/* Spinner Verde */
.green-spinner {
    border-top-color: #00e676 !important;
}

/* Animaciones */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        filter: drop-shadow(0 0 5px rgba(0, 230, 118, 0.2));
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(0, 230, 118, 0.6));
    }

    100% {
        filter: drop-shadow(0 0 5px rgba(0, 230, 118, 0.2));
    }
}