/**
 * Estilos para el modal de autenticación con contraseña
 */

.db-frea-password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.db-frea-password-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.db-frea-password-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    padding: 30px;
    z-index: 100000;
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.db-frea-password-header {
    margin-bottom: 25px;
    text-align: center;
}

.db-frea-password-header h2 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #1d2327;
    font-weight: 600;
}

.db-frea-password-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.db-frea-password-form {
    width: 100%;
}

.db-frea-password-field-wrapper {
    margin-bottom: 15px;
}

.db-frea-password-field-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1d2327;
    font-size: 14px;
}

.db-frea-password-input-group {
    position: relative;
    display: flex;
    gap: 8px;
}

.db-frea-password-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.db-frea-password-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.db-frea-password-toggle {
    padding: 12px 12px;
    border: 1px solid #c3c4c7;
    background: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.db-frea-password-toggle:hover {
    background: #e9ecef;
    border-color: #999;
}

.db-frea-password-message {
    margin-bottom: 15px;
    font-size: 14px;
}

.db-frea-password-message p {
    margin: 0;
    padding: 12px;
    border-radius: 4px;
}

.db-frea-password-message .db-frea-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.db-frea-password-message .db-frea-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.db-frea-password-submit {
    width: 100%;
    padding: 12px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.db-frea-password-submit:hover {
    background: #1d5aa0;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);
}

.db-frea-password-submit:active {
    transform: scale(0.98);
}

.db-frea-password-submit:disabled {
    background: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 500px) {
    .db-frea-password-box {
        width: calc(100% - 30px);
        padding: 20px;
        max-width: none;
    }

    .db-frea-password-header h2 {
        font-size: 18px;
    }

    .db-frea-password-input-group {
        flex-wrap: wrap;
    }

    .db-frea-password-toggle {
        order: -1;
    }

    .db-frea-password-input {
        order: -2;
        width: 100%;
    }
}
